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

Commit 80e3ff5

Browse files
committed
move rest of ts files
1 parent 97753b7 commit 80e3ff5

File tree

799 files changed

+587
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

799 files changed

+587
-587
lines changed

public/docs/_examples/component-styles/ts/index.html renamed to public/docs/_examples/component-styles/ts/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<script src="systemjs.config.js"></script>
1717
<script>
18-
System.import('app').catch(function(err){ console.error(err); });
18+
System.import('main.js').catch(function(err){ console.error(err); });
1919
</script>
2020
</head>
2121

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
import { AppModule } from './app.module';
3+
import { AppModule } from './app/app.module';
44

55
platformBrowserDynamic().bootstrapModule(AppModule);

public/docs/_examples/dependency-injection/ts/index.html renamed to public/docs/_examples/dependency-injection/ts/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<script src="systemjs.config.js"></script>
1818
<script>
19-
System.import('app').catch(function(err){ console.error(err); });
19+
System.import('main.js').catch(function(err){ console.error(err); });
2020
</script>
2121
</head>
2222

public/docs/_examples/dependency-injection/ts/app/main.ts renamed to public/docs/_examples/dependency-injection/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2-
import { AppModule } from './app.module';
2+
import { AppModule } from './app/app.module';
33

44
// #docregion bootstrap
55
platformBrowserDynamic().bootstrapModule(AppModule);
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
<!-- #docregion -->
2-
<!DOCTYPE html>
3-
<html>
4-
<head>
5-
<!- Doesn't load from node_modules! -->
6-
7-
<!-- Set the base href -->
8-
<base href="/">
9-
<title>Simple Deployment</title>
10-
<meta charset="UTF-8">
11-
<meta name="viewport" content="width=device-width, initial-scale=1">
12-
<link rel="stylesheet" href="styles.css">
13-
14-
<!-- #docregion node-module-scripts -->
15-
<!-- Polyfills -->
16-
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
17-
18-
<!-- Update these package versions as needed -->
19-
<script src="https://unpkg.com/zone.js@0.7.4?main=browser"></script>
20-
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
21-
<!-- #enddocregion node-module-scripts -->
22-
23-
<!-- #docregion systemjs-config -->
24-
<!-- This SystemJS configuration loads umd packages from the web -->
25-
<script src="systemjs.config.server.js"></script>
26-
<!-- #enddocregion systemjs-config -->
27-
28-
<script>
29-
System.import('app')
30-
.catch(function(err){ console.error(err); });
31-
</script>
32-
</head>
33-
34-
<body>
35-
<my-app>loading...</my-app>
36-
</body>
37-
38-
</html>
1+
<!-- #docregion -->
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<!- Doesn't load from node_modules! -->
6+
7+
<!-- Set the base href -->
8+
<base href="/">
9+
<title>Simple Deployment</title>
10+
<meta charset="UTF-8">
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<link rel="stylesheet" href="styles.css">
13+
14+
<!-- #docregion node-module-scripts -->
15+
<!-- Polyfills -->
16+
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
17+
18+
<!-- Update these package versions as needed -->
19+
<script src="https://unpkg.com/zone.js@0.7.4?main=browser"></script>
20+
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
21+
<!-- #enddocregion node-module-scripts -->
22+
23+
<!-- #docregion systemjs-config -->
24+
<!-- This SystemJS configuration loads umd packages from the web -->
25+
<script src="systemjs.config.server.js"></script>
26+
<!-- #enddocregion systemjs-config -->
27+
28+
<script>
29+
System.import('main.js')
30+
.catch(function(err){ console.error(err); });
31+
</script>
32+
</head>
33+
34+
<body>
35+
<my-app>loading...</my-app>
36+
</body>
37+
38+
</html>

public/docs/_examples/deployment/ts/app/main.ts renamed to public/docs/_examples/deployment/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

4-
import { AppModule } from './app.module';
4+
import { AppModule } from './app/app.module';
55

66
// #docregion enableProdMode
77
import { enableProdMode } from '@angular/core';

public/docs/_examples/displaying-data/ts/index.html renamed to public/docs/_examples/displaying-data/ts/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<script src="systemjs.config.js"></script>
1717
<script>
18-
System.import('app').catch(function(err){ console.error(err); });
18+
System.import('main.js').catch(function(err){ console.error(err); });
1919
</script>
2020
</head>
2121

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #docregion
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

4-
import { AppModule } from './app.module';
4+
import { AppModule } from './app/app.module';
55

66
platformBrowserDynamic().bootstrapModule(AppModule);

public/docs/_examples/forms/ts/index.html renamed to public/docs/_examples/forms/ts/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<script src="systemjs.config.js"></script>
2626
<script>
27-
System.import('app').catch(function(err){ console.error(err); });
27+
System.import('main.js').catch(function(err){ console.error(err); });
2828
</script>
2929
</head>
3030

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
import { AppModule } from './app.module';
3+
import { AppModule } from './app/app.module';
44

55
platformBrowserDynamic().bootstrapModule(AppModule);
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { Component } from '@angular/core';
2-
3-
@Component({
4-
selector: 'my-app',
5-
template: `
6-
<label><input type="checkbox" [checked]="showHeroes" (change)="showHeroes=!showHeroes">Heroes</label>
7-
<label><input type="checkbox" [checked]="showVillains" (change)="showVillains=!showVillains">Villains</label>
8-
<label><input type="checkbox" [checked]="showCars" (change)="showCars=!showCars">Cars</label>
9-
10-
<h1>Hierarchical Dependency Injection</h1>
11-
12-
<heroes-list *ngIf="showHeroes"></heroes-list>
13-
<villains-list *ngIf="showVillains"></villains-list>
14-
<my-cars *ngIf="showCars"></my-cars>
15-
`
16-
})
17-
export class AppComponent {
18-
showCars = true;
19-
showHeroes = true;
20-
showVillains = true;
21-
}
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'my-app',
5+
template: `
6+
<label><input type="checkbox" [checked]="showHeroes" (change)="showHeroes=!showHeroes">Heroes</label>
7+
<label><input type="checkbox" [checked]="showVillains" (change)="showVillains=!showVillains">Villains</label>
8+
<label><input type="checkbox" [checked]="showCars" (change)="showCars=!showCars">Cars</label>
9+
10+
<h1>Hierarchical Dependency Injection</h1>
11+
12+
<heroes-list *ngIf="showHeroes"></heroes-list>
13+
<villains-list *ngIf="showVillains"></villains-list>
14+
<my-cars *ngIf="showCars"></my-cars>
15+
`
16+
})
17+
export class AppComponent {
18+
showCars = true;
19+
showHeroes = true;
20+
showVillains = true;
21+
}
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
1-
import { Component } from '@angular/core';
2-
3-
import {
4-
CarService, CarService2, CarService3,
5-
EngineService, EngineService2, TiresService
6-
} from './car.services';
7-
8-
////////// CCarComponent ////////////
9-
@Component({
10-
selector: 'c-car',
11-
template: `<div>C: {{description}}</div>`,
12-
providers: [
13-
{ provide: CarService, useClass: CarService3 }
14-
]
15-
})
16-
export class CCarComponent {
17-
description: string;
18-
constructor(carService: CarService) {
19-
this.description = `${carService.getCar().description} (${carService.name})`;
20-
}
21-
}
22-
23-
////////// BCarComponent ////////////
24-
@Component({
25-
selector: 'b-car',
26-
template: `
27-
<div>B: {{description}}</div>
28-
<c-car></c-car>
29-
`,
30-
providers: [
31-
{ provide: CarService, useClass: CarService2 },
32-
{ provide: EngineService, useClass: EngineService2 }
33-
]
34-
})
35-
export class BCarComponent {
36-
description: string;
37-
constructor(carService: CarService) {
38-
this.description = `${carService.getCar().description} (${carService.name})`;
39-
}
40-
}
41-
42-
////////// ACarComponent ////////////
43-
@Component({
44-
selector: 'a-car',
45-
template: `
46-
<div>A: {{description}}</div>
47-
<b-car></b-car>`
48-
})
49-
export class ACarComponent {
50-
description: string;
51-
constructor(carService: CarService) {
52-
this.description = `${carService.getCar().description} (${carService.name})`;
53-
}
54-
}
55-
////////// CarsComponent ////////////
56-
@Component({
57-
selector: 'my-cars',
58-
template: `
59-
<h3>Cars</h3>
60-
<a-car></a-car>`
61-
})
62-
export class CarsComponent { }
63-
64-
////////////////
65-
66-
export const carComponents = [
67-
CarsComponent,
68-
ACarComponent, BCarComponent, CCarComponent
69-
];
70-
71-
// generic car-related services
72-
export const carServices = [
73-
CarService, EngineService, TiresService
74-
];
1+
import { Component } from '@angular/core';
2+
3+
import {
4+
CarService, CarService2, CarService3,
5+
EngineService, EngineService2, TiresService
6+
} from './car.services';
7+
8+
////////// CCarComponent ////////////
9+
@Component({
10+
selector: 'c-car',
11+
template: `<div>C: {{description}}</div>`,
12+
providers: [
13+
{ provide: CarService, useClass: CarService3 }
14+
]
15+
})
16+
export class CCarComponent {
17+
description: string;
18+
constructor(carService: CarService) {
19+
this.description = `${carService.getCar().description} (${carService.name})`;
20+
}
21+
}
22+
23+
////////// BCarComponent ////////////
24+
@Component({
25+
selector: 'b-car',
26+
template: `
27+
<div>B: {{description}}</div>
28+
<c-car></c-car>
29+
`,
30+
providers: [
31+
{ provide: CarService, useClass: CarService2 },
32+
{ provide: EngineService, useClass: EngineService2 }
33+
]
34+
})
35+
export class BCarComponent {
36+
description: string;
37+
constructor(carService: CarService) {
38+
this.description = `${carService.getCar().description} (${carService.name})`;
39+
}
40+
}
41+
42+
////////// ACarComponent ////////////
43+
@Component({
44+
selector: 'a-car',
45+
template: `
46+
<div>A: {{description}}</div>
47+
<b-car></b-car>`
48+
})
49+
export class ACarComponent {
50+
description: string;
51+
constructor(carService: CarService) {
52+
this.description = `${carService.getCar().description} (${carService.name})`;
53+
}
54+
}
55+
////////// CarsComponent ////////////
56+
@Component({
57+
selector: 'my-cars',
58+
template: `
59+
<h3>Cars</h3>
60+
<a-car></a-car>`
61+
})
62+
export class CarsComponent { }
63+
64+
////////////////
65+
66+
export const carComponents = [
67+
CarsComponent,
68+
ACarComponent, BCarComponent, CCarComponent
69+
];
70+
71+
// generic car-related services
72+
export const carServices = [
73+
CarService, EngineService, TiresService
74+
];

0 commit comments

Comments
 (0)