Added 'app.ts' test file to doc-shredder tests
This commit is contained in:
parent
903f59b8ee
commit
86d75d4bb9
|
@ -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