Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 55d7638

Browse files
committed
chore: update examples to TS2.0
1 parent 6813ced commit 55d7638

File tree

15 files changed

+21
-17
lines changed

15 files changed

+21
-17
lines changed

public/docs/_examples/_protractor/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"license": "ISC",
1414
"devDependencies": {
1515
"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"
1719
},
1820
"repository": {}
19-
}
21+
}

public/docs/_examples/homepage-hello-world/ts/index.1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<script src="https://unpkg.com/[email protected]"></script>
1515
<script src="https://unpkg.com/[email protected]"></script>
1616
<script src="https://unpkg.com/[email protected]/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>
1818

1919
<!-- 2. Configure SystemJS -->
2020
<script src="systemjs.config.js"></script>

public/docs/_examples/homepage-tabs/ts/index.1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script src="https://unpkg.com/[email protected]"></script>
1616
<script src="https://unpkg.com/[email protected]"></script>
1717
<script src="https://unpkg.com/[email protected]/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>
1919

2020
<!-- 2. Configure SystemJS -->
2121
<script src="systemjs.config.js"></script>

public/docs/_examples/homepage-todo/ts/index.1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script src="https://unpkg.com/[email protected]"></script>
1616
<script src="https://unpkg.com/[email protected]"></script>
1717
<script src="https://unpkg.com/[email protected]/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>
1919

2020
<!-- 2. Configure SystemJS -->
2121
<script src="systemjs.config.js"></script>

public/docs/_examples/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"devDependencies": {
5252
"angular-cli": "^1.0.0-beta.5",
5353
"angular2-template-loader": "^0.4.0",
54+
"awesome-typescript-loader": "^2.2.4",
5455
"canonical-path": "0.0.2",
5556
"concurrently": "^2.2.0",
5657
"css-loader": "^0.23.1",
@@ -79,9 +80,9 @@
7980
"rollup-plugin-commonjs": "^4.1.0",
8081
"style-loader": "^0.13.1",
8182
"ts-loader": "^0.8.2",
82-
"ts-node": "^0.7.3",
83+
"ts-node": "^1.3.0",
8384
"tslint": "^3.15.1",
84-
"typescript": "2.0.2",
85+
"typescript": "^2.0.2",
8586
"typings": "^1.3.2",
8687
"webpack": "^1.13.0",
8788
"webpack-dev-server": "^1.14.1",

public/docs/_examples/quickstart/ts/package.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"devDependencies": {
3434
"concurrently": "^2.2.0",
3535
"lite-server": "^2.2.2",
36-
"typescript": "^1.8.10",
36+
"typescript": "^2.0.2",
3737
"typings":"^1.3.2"
3838
}
3939
}

public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/hero.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Injectable } from '@angular/core';
33
import { Observable } from 'rxjs/Rx';
44

5-
import { Hero } from './hero.model.ts';
5+
import { Hero } from './hero.model';
66

77
@Injectable()
88
export class HeroService {

public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/hero-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// #docregion
33
import { Component } from '@angular/core';
44

5-
import { Hero } from '../shared/hero.model.ts';
5+
import { Hero } from '../shared/hero.model';
66

77
// #docregion example
88
@Component({

public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/hero.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Injectable } from '@angular/core';
33
import { Observable } from 'rxjs/Rx';
44

5-
import { Hero } from './hero.model.ts';
5+
import { Hero } from './hero.model';
66

77
@Injectable()
88
export class HeroService {

public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Injectable } from '@angular/core';
33
import { Observable } from 'rxjs/Rx';
44

5-
import { Hero } from './hero.model.ts';
5+
import { Hero } from './hero.model';
66

77
@Injectable()
88
export class HeroService {

0 commit comments

Comments
 (0)