Added 'app.ts' test file to doc-shredder tests
This commit is contained in:
parent
d67f728b20
commit
6fd005bcf9
|
@ -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…
Reference in New Issue