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

chore: update examples to TS2.0 #2329

Merged
merged 1 commit into from
Sep 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion public/docs/_examples/_protractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"license": "ISC",
"devDependencies": {
"protractor": "^3.3.0",
"typings": "^1.0.4"
"typings": "^1.0.4",
"ts-node": "^1.3.0",
"typescript": "^2.0.2"
},
"repository": {}
}
2 changes: 1 addition & 1 deletion public/docs/_examples/homepage-hello-world/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="https://unpkg.com/zone.js@0.6.21"></script>
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<script src="https://unpkg.com/typescript@2.0.2/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/homepage-tabs/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script src="https://unpkg.com/zone.js@0.6.21"></script>
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<script src="https://unpkg.com/typescript@2.0.2/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/homepage-todo/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script src="https://unpkg.com/zone.js@0.6.21"></script>
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<script src="https://unpkg.com/typescript@2.0.2/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
5 changes: 3 additions & 2 deletions public/docs/_examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"devDependencies": {
"angular-cli": "^1.0.0-beta.5",
"angular2-template-loader": "^0.4.0",
"awesome-typescript-loader": "^2.2.4",
"canonical-path": "0.0.2",
"concurrently": "^2.2.0",
"css-loader": "^0.23.1",
Expand Down Expand Up @@ -79,9 +80,9 @@
"rollup-plugin-commonjs": "^4.1.0",
"style-loader": "^0.13.1",
"ts-loader": "^0.8.2",
"ts-node": "^0.7.3",
"ts-node": "^1.3.0",
"tslint": "^3.15.1",
"typescript": "2.0.2",
"typescript": "^2.0.2",
"typings": "^1.3.2",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1",
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/quickstart/ts/package.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"devDependencies": {
"concurrently": "^2.2.0",
"lite-server": "^2.2.2",
"typescript": "^1.8.10",
"typescript": "^2.0.2",
"typings":"^1.3.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';

import { Hero } from './hero.model.ts';
import { Hero } from './hero.model';

@Injectable()
export class HeroService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// #docregion
import { Component } from '@angular/core';

import { Hero } from '../shared/hero.model.ts';
import { Hero } from '../shared/hero.model';

// #docregion example
@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';

import { Hero } from './hero.model.ts';
import { Hero } from './hero.model';

@Injectable()
export class HeroService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';

import { Hero } from './hero.model.ts';
import { Hero } from './hero.model';

@Injectable()
export class HeroService {
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/systemjs.config.plunker.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'rxjs': 'npm:rxjs',
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
'ts': 'npm:plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'npm:typescript@1.9.0-dev.20160409/lib/typescript.js',
'typescript': 'npm:typescript@2.0.2/lib/typescript.js',

},
// packages tells the System loader how to load when no filename and/or no extension
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/systemjs.config.plunker.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'rxjs': 'npm:rxjs',
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
'ts': 'npm:plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'npm:typescript@1.9.0-dev.20160409/lib/typescript.js',
'typescript': 'npm:typescript@2.0.2/lib/typescript.js',

},
// packages tells the System loader how to load when no filename and/or no extension
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/webpack/ts/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
loaders: [
{
test: /\.ts$/,
loaders: ['ts', 'angular2-template-loader']
loaders: ['awesome-typescript-loader', 'angular2-template-loader']
},
{
test: /\.html$/,
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/webpack/ts/config/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
loaders: [
{
test: /\.ts$/,
loaders: ['ts', 'angular2-template-loader']
loaders: ['awesome-typescript-loader', 'angular2-template-loader']
},
{
test: /\.html$/,
Expand Down
3 changes: 2 additions & 1 deletion public/docs/_examples/webpack/ts/package.webpack.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"devDependencies": {
"angular2-template-loader": "^0.4.0",
"awesome-typescript-loader": "^2.2.4",
"css-loader": "^0.23.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
Expand All @@ -41,7 +42,7 @@
"rimraf": "^2.5.2",
"style-loader": "^0.13.1",
"ts-loader": "^0.8.1",
"typescript": "^1.8.10",
"typescript": "^2.0.2",
"typings": "^1.3.2",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1",
Expand Down