Added 'app.ts' test file to doc-shredder tests
This commit is contained in:
parent
d67f728b20
commit
6fd005bcf9
22
tools/doc-shredder/_test/test_source/no-multiregion/app.ts
Normal file
22
tools/doc-shredder/_test/test_source/no-multiregion/app.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// #docregion
|
||||||
|
// #docregion import
|
||||||
|
import {Component, View, bootstrap} from 'angular2/angular2';
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion class-w-annotations
|
||||||
|
@Component({
|
||||||
|
selector: 'my-app'
|
||||||
|
})
|
||||||
|
@View({
|
||||||
|
template: '<h1 id="output">My First Angular 2 App</h1>'
|
||||||
|
})
|
||||||
|
// #docregion class
|
||||||
|
class AppComponent {
|
||||||
|
}
|
||||||
|
// #enddocregion
|
||||||
|
// #enddocregion
|
||||||
|
|
||||||
|
// #docregion bootstrap
|
||||||
|
bootstrap(AppComponent);
|
||||||
|
// #enddocregion
|
||||||
|
// #enddocregion
|
Loading…
x
Reference in New Issue
Block a user