Skip to content

Commit f4bea02

Browse files
committed
move ts files up to cookbooks
1 parent 7bc7a53 commit f4bea02

File tree

198 files changed

+172
-186
lines changed

Some content is hidden

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

198 files changed

+172
-186
lines changed

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

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

1919
<script src="systemjs.config.js"></script>
2020
<script>
21-
System.import('app').catch(function(err){ console.error(err); });
21+
System.import('main.js').catch(function(err){ console.error(err); });
2222
</script>
2323
</head>
2424

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2-
import { AppModule } from './app.module';
2+
import { AppModule } from './app/app.module';
33

44
platformBrowserDynamic().bootstrapModule(AppModule);

public/docs/_examples/architecture/ts/index.html renamed to public/docs/_examples/architecture/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/attribute-directives/ts/index.html renamed to public/docs/_examples/attribute-directives/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
<body>
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/cb-ajs-quick-reference/ts/index.html renamed to public/docs/_examples/cb-ajs-quick-reference/ts/src/index.html

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

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

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/cb-aot-compiler/ts/index-jit.html renamed to public/docs/_examples/cb-aot-compiler/ts/src/index-jit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<script src="node_modules/systemjs/dist/system.src.js"></script>
1515
<script src="systemjs.config.js"></script>
1616
<script>
17-
System.import('app/main-jit').catch(function(err){ console.error(err); });
17+
System.import('main-jit.js').catch(function(err){ console.error(err); });
1818
</script>
1919
<!-- #enddocregion jit -->
2020
</head>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
console.log('Running JIT compiled');
66
platformBrowserDynamic().bootstrapModule(AppModule);

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

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

1919
<script src="systemjs.config.js"></script>
2020
<script>
21-
System.import('app').catch(function(err){ console.error(err); });
21+
System.import('main.js').catch(function(err){ console.error(err); });
2222
</script>
2323
</head>
2424

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

3-
import { AppModule } from './app.module';
3+
import { AppModule } from './app/app.module';
44

55
platformBrowserDynamic().bootstrapModule(AppModule);

public/docs/_examples/cb-component-relative-paths/ts/index.html renamed to public/docs/_examples/cb-component-relative-paths/ts/src/index.html

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

2222
<script src="systemjs.config.js"></script>
2323
<script>
24-
System.import('app').catch(function(err){ console.error(err); });
24+
System.import('main.js').catch(function(err){ console.error(err); });
2525
</script>
2626
</head>
2727
<body>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
22

3-
import { AppModule } from './app.module';
3+
import { AppModule } from './app/app.module';
44

55
platformBrowserDynamic().bootstrapModule(AppModule);

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

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

1919
<script src="systemjs.config.js"></script>
2020
<script>
21-
System.import('app').catch(function(err){ console.error(err); });
21+
System.import('main.js').catch(function(err){ console.error(err); });
2222
</script>
2323
</head>
2424

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/cb-dynamic-component-loader/ts/index.html renamed to public/docs/_examples/cb-dynamic-component-loader/ts/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<link rel="stylesheet" href="styles.css">
99
<link rel="stylesheet" href="sample.css">
10-
10+
1111
<script src="node_modules/core-js/client/shim.min.js"></script>
1212

1313
<script src="node_modules/zone.js/dist/zone.js"></script>
@@ -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
<body>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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);
66

public/docs/_examples/cb-dynamic-form/ts/app/main.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

public/docs/_examples/cb-dynamic-form/ts/index.html renamed to public/docs/_examples/cb-dynamic-form/ts/src/index.html

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

1919
<script src="systemjs.config.js"></script>
2020
<script>
21-
System.import('app').catch(function(err){ console.error(err); });
21+
System.import('main.js').catch(function(err){ console.error(err); });
2222
</script>
2323
</head>
2424
<body>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// #docregion
2+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3+
import { AppModule } from './app/app.module';
4+
5+
platformBrowserDynamic().bootstrapModule(AppModule);

public/docs/_examples/cb-form-validation/ts/index.html renamed to public/docs/_examples/cb-form-validation/ts/src/index.html

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

1919
<script src="systemjs.config.js"></script>
2020
<script>
21-
System.import('app').catch(function(err){ console.error(err); });
21+
System.import('main.js').catch(function(err){ console.error(err); });
2222
</script>
2323
</head>
2424

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/cb-i18n/ts/index.html renamed to public/docs/_examples/cb-i18n/ts/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
});
2929

3030
// Launch the app
31-
System.import('app').catch(function(err){ console.error(err); });
31+
System.import('main.js').catch(function(err){ console.error(err); });
3232
</script>
3333
<!-- #enddocregion i18n -->
3434
</head>
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/cb-i18n/ts/app/main.ts renamed to public/docs/_examples/cb-i18n/ts/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// #docregion
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
import { getTranslationProviders } from './i18n-providers';
3+
import { getTranslationProviders } from './app/i18n-providers';
44

5-
import { AppModule } from './app.module';
5+
import { AppModule } from './app/app.module';
66

77
getTranslationProviders().then(providers => {
88
const options = { providers };

public/docs/_examples/cb-i18n/ts/systemjs-text-plugin.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

public/docs/_examples/cb-set-document-title/ts/index.html renamed to public/docs/_examples/cb-set-document-title/ts/src/index.html

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

2323
<script src="systemjs.config.js"></script>
2424
<script>
25-
System.import('app')
25+
System.import('main.js')
2626
.then(function() { console.info( "System.js loaded your application module." )})
2727
.catch(function(err){ console.error(err); });
2828
</script>
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);
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
<a id="toc"></a>
2-
<h1>{{title}}</h1>
3-
<a href="#class-metadata">Classes and Class Metadata</a><br>
4-
<a href="#io-metadata">Input and Output Decorators</a><br>
5-
<a href="#dependency-injection">Dependency Injection</a><br>
6-
<a href="#host-metadata">Host Metadata</a><br>
7-
<a href="#view-child-metadata">View and Child Metadata</a><br>
8-
9-
<hr>
10-
<h4 id="class-metadata">Classes and Class Metadata</h4>
11-
<hero-view></hero-view>
12-
<hero-lifecycle></hero-lifecycle>
13-
14-
<hr>
15-
<h4 id="io-metadata">Input and Output Metadata</h4>
16-
<hero-io></hero-io>
17-
18-
<hr>
19-
<h4 id="dependency-injection">Dependency Injection</h4>
20-
<hero-di></hero-di>
21-
<hero-di-inject></hero-di-inject>
22-
<hero-di-inject-additional></hero-di-inject-additional>
23-
24-
<hr>
25-
<h4 id="host-metadata">Host Metadata</h4>
26-
<hero-host></hero-host>
27-
<hero-host-meta></hero-host-meta>
28-
29-
<hr>
30-
<h4 id="view-child-metadata">View and Child Metadata</h4>
31-
<hero-queries></hero-queries>
1+
<a id="toc"></a>
2+
<h1>{{title}}</h1>
3+
<a href="#class-metadata">Classes and Class Metadata</a><br>
4+
<a href="#io-metadata">Input and Output Decorators</a><br>
5+
<a href="#dependency-injection">Dependency Injection</a><br>
6+
<a href="#host-metadata">Host Metadata</a><br>
7+
<a href="#view-child-metadata">View and Child Metadata</a><br>
8+
9+
<hr>
10+
<h4 id="class-metadata">Classes and Class Metadata</h4>
11+
<hero-view></hero-view>
12+
<hero-lifecycle></hero-lifecycle>
13+
14+
<hr>
15+
<h4 id="io-metadata">Input and Output Metadata</h4>
16+
<hero-io></hero-io>
17+
18+
<hr>
19+
<h4 id="dependency-injection">Dependency Injection</h4>
20+
<hero-di></hero-di>
21+
<hero-di-inject></hero-di-inject>
22+
<hero-di-inject-additional></hero-di-inject-additional>
23+
24+
<hr>
25+
<h4 id="host-metadata">Host Metadata</h4>
26+
<hero-host></hero-host>
27+
<hero-host-meta></hero-host-meta>
28+
29+
<hr>
30+
<h4 id="view-child-metadata">View and Child Metadata</h4>
31+
<hero-queries></hero-queries>
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { Component } from '@angular/core';
2-
3-
@Component({
4-
moduleId: module.id,
5-
selector: 'my-app',
6-
templateUrl: './app.component.html',
7-
styles: [
8-
// See hero-di-inject-additional.component
9-
'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}',
10-
'.heading {font-style: italic}'
11-
]
12-
})
13-
export class AppComponent {
14-
title = 'TypeScript';
15-
}
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
moduleId: module.id,
5+
selector: 'my-app',
6+
templateUrl: './app.component.html',
7+
styles: [
8+
// See hero-di-inject-additional.component
9+
'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}',
10+
'.heading {font-style: italic}'
11+
]
12+
})
13+
export class AppComponent {
14+
title = 'TypeScript';
15+
}

0 commit comments

Comments
 (0)