This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 15 files changed +21
-17
lines changed
05-17/app/heroes/hero-list Expand file tree Collapse file tree 15 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 13
13
"license" : " ISC" ,
14
14
"devDependencies" : {
15
15
"protractor" : " ^3.3.0" ,
16
- "typings" : " ^1.0.4"
16
+ "typings" : " ^1.0.4" ,
17
+ "ts-node" : " ^1.3.0" ,
18
+ "typescript" : " ^2.0.2"
17
19
},
18
20
"repository" : {}
19
- }
21
+ }
Original file line number Diff line number Diff line change 14
14
< script src ="https://unpkg.com/zone.js@0.6.21 "> </ script >
15
15
< script src ="https://unpkg.com/reflect-metadata@0.1.3 "> </ script >
16
16
< script src ="https://unpkg.com/systemjs@0.19.27/dist/system.src.js "> </ script >
17
- < script src ="https://unpkg.com/typescript@1.8.10 /lib/typescript.js "> </ script >
17
+ < script src ="https://unpkg.com/typescript@2.0.2 /lib/typescript.js "> </ script >
18
18
19
19
<!-- 2. Configure SystemJS -->
20
20
< script src ="systemjs.config.js "> </ script >
Original file line number Diff line number Diff line change 15
15
< script src ="https://unpkg.com/zone.js@0.6.21 "> </ script >
16
16
< script src ="https://unpkg.com/reflect-metadata@0.1.3 "> </ script >
17
17
< script src ="https://unpkg.com/systemjs@0.19.27/dist/system.src.js "> </ script >
18
- < script src ="https://unpkg.com/typescript@1.8.10 /lib/typescript.js "> </ script >
18
+ < script src ="https://unpkg.com/typescript@2.0.2 /lib/typescript.js "> </ script >
19
19
20
20
<!-- 2. Configure SystemJS -->
21
21
< script src ="systemjs.config.js "> </ script >
Original file line number Diff line number Diff line change 15
15
< script src ="https://unpkg.com/zone.js@0.6.21 "> </ script >
16
16
< script src ="https://unpkg.com/reflect-metadata@0.1.3 "> </ script >
17
17
< script src ="https://unpkg.com/systemjs@0.19.27/dist/system.src.js "> </ script >
18
- < script src ="https://unpkg.com/typescript@1.8.10 /lib/typescript.js "> </ script >
18
+ < script src ="https://unpkg.com/typescript@2.0.2 /lib/typescript.js "> </ script >
19
19
20
20
<!-- 2. Configure SystemJS -->
21
21
< script src ="systemjs.config.js "> </ script >
Original file line number Diff line number Diff line change 51
51
"devDependencies" : {
52
52
"angular-cli" : " ^1.0.0-beta.5" ,
53
53
"angular2-template-loader" : " ^0.4.0" ,
54
+ "awesome-typescript-loader" : " ^2.2.4" ,
54
55
"canonical-path" : " 0.0.2" ,
55
56
"concurrently" : " ^2.2.0" ,
56
57
"css-loader" : " ^0.23.1" ,
79
80
"rollup-plugin-commonjs" : " ^4.1.0" ,
80
81
"style-loader" : " ^0.13.1" ,
81
82
"ts-loader" : " ^0.8.2" ,
82
- "ts-node" : " ^0.7.3 " ,
83
+ "ts-node" : " ^1.3.0 " ,
83
84
"tslint" : " ^3.15.1" ,
84
- "typescript" : " 2.0.2" ,
85
+ "typescript" : " ^ 2.0.2" ,
85
86
"typings" : " ^1.3.2" ,
86
87
"webpack" : " ^1.13.0" ,
87
88
"webpack-dev-server" : " ^1.14.1" ,
Original file line number Diff line number Diff line change 33
33
"devDependencies" : {
34
34
"concurrently" : " ^2.2.0" ,
35
35
"lite-server" : " ^2.2.2" ,
36
- "typescript" : " ^1.8.10 " ,
36
+ "typescript" : " ^2.0.2 " ,
37
37
"typings" :" ^1.3.2"
38
38
}
39
39
}
Original file line number Diff line number Diff line change 2
2
import { Injectable } from '@angular/core' ;
3
3
import { Observable } from 'rxjs/Rx' ;
4
4
5
- import { Hero } from './hero.model.ts ' ;
5
+ import { Hero } from './hero.model' ;
6
6
7
7
@Injectable ( )
8
8
export class HeroService {
Original file line number Diff line number Diff line change 2
2
// #docregion
3
3
import { Component } from '@angular/core' ;
4
4
5
- import { Hero } from '../shared/hero.model.ts ' ;
5
+ import { Hero } from '../shared/hero.model' ;
6
6
7
7
// #docregion example
8
8
@Component ( {
Original file line number Diff line number Diff line change 2
2
import { Injectable } from '@angular/core' ;
3
3
import { Observable } from 'rxjs/Rx' ;
4
4
5
- import { Hero } from './hero.model.ts ' ;
5
+ import { Hero } from './hero.model' ;
6
6
7
7
@Injectable ( )
8
8
export class HeroService {
Original file line number Diff line number Diff line change 2
2
import { Injectable } from '@angular/core' ;
3
3
import { Observable } from 'rxjs/Rx' ;
4
4
5
- import { Hero } from './hero.model.ts ' ;
5
+ import { Hero } from './hero.model' ;
6
6
7
7
@Injectable ( )
8
8
export class HeroService {
Original file line number Diff line number Diff line change 53
53
'rxjs' : 'npm:rxjs' ,
54
54
'angular2-in-memory-web-api' : 'npm:angular2-in-memory-web-api' ,
55
55
'ts' : 'npm:plugin-typescript@4.0.10/lib/plugin.js' ,
56
- 'typescript' : 'npm:typescript@1.9.0-dev.20160409 /lib/typescript.js' ,
56
+ 'typescript' : 'npm:typescript@2.0.2 /lib/typescript.js' ,
57
57
58
58
} ,
59
59
// packages tells the System loader how to load when no filename and/or no extension
Original file line number Diff line number Diff line change 40
40
'rxjs' : 'npm:rxjs' ,
41
41
'angular2-in-memory-web-api' : 'npm:angular2-in-memory-web-api' ,
42
42
'ts' : 'npm:plugin-typescript@4.0.10/lib/plugin.js' ,
43
- 'typescript' : 'npm:typescript@1.9.0-dev.20160409 /lib/typescript.js' ,
43
+ 'typescript' : 'npm:typescript@2.0.2 /lib/typescript.js' ,
44
44
45
45
} ,
46
46
// packages tells the System loader how to load when no filename and/or no extension
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
loaders : [
25
25
{
26
26
test : / \. t s $ / ,
27
- loaders : [ 'ts ' , 'angular2-template-loader' ]
27
+ loaders : [ 'awesome-typescript-loader ' , 'angular2-template-loader' ]
28
28
} ,
29
29
{
30
30
test : / \. h t m l $ / ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = {
12
12
loaders : [
13
13
{
14
14
test : / \. t s $ / ,
15
- loaders : [ 'ts ' , 'angular2-template-loader' ]
15
+ loaders : [ 'awesome-typescript-loader ' , 'angular2-template-loader' ]
16
16
} ,
17
17
{
18
18
test : / \. h t m l $ / ,
Original file line number Diff line number Diff line change 24
24
},
25
25
"devDependencies" : {
26
26
"angular2-template-loader" : " ^0.4.0" ,
27
+ "awesome-typescript-loader" : " ^2.2.4" ,
27
28
"css-loader" : " ^0.23.1" ,
28
29
"extract-text-webpack-plugin" : " ^1.0.1" ,
29
30
"file-loader" : " ^0.8.5" ,
41
42
"rimraf" : " ^2.5.2" ,
42
43
"style-loader" : " ^0.13.1" ,
43
44
"ts-loader" : " ^0.8.1" ,
44
- "typescript" : " ^1.8.10 " ,
45
+ "typescript" : " ^2.0.2 " ,
45
46
"typings" : " ^1.3.2" ,
46
47
"webpack" : " ^1.13.0" ,
47
48
"webpack-dev-server" : " ^1.14.1" ,
You can’t perform that action at this time.
0 commit comments