(docs) Displaying Data: remove unnecessary region split in app.1.ts
This commit is contained in:
parent
f26c8a13a9
commit
4a00fbe21a
|
@ -1,10 +0,0 @@
|
|||
// #docregion
|
||||
import {Component, bootstrap} from 'angular2/angular2';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: '<h1>My First Angular 2 App</h1>'
|
||||
})
|
||||
class AppComponent { }
|
||||
|
||||
bootstrap(AppComponent);
|
|
@ -1,5 +1,4 @@
|
|||
// #docplaster
|
||||
// #docregion start
|
||||
// #docregion
|
||||
import {Component, bootstrap} from 'angular2/angular2';
|
||||
|
||||
@Component({
|
||||
|
@ -16,9 +15,4 @@ export class AppComponent {
|
|||
myHero = 'Windstorm';
|
||||
}
|
||||
|
||||
// #enddocregion start
|
||||
/*
|
||||
// #docregion start
|
||||
bootstrap(AppComponent);
|
||||
//#enddocregion start
|
||||
*/
|
|
@ -30,7 +30,7 @@ figure.image-display
|
|||
Then modify the `app.ts` file by changing the template and the body of the component.
|
||||
When we're done, it should look like this:
|
||||
|
||||
+makeExample('displaying-data/ts/src/app/app.1.ts', 'start')
|
||||
+makeExample('displaying-data/ts/src/app/app.1.ts')
|
||||
|
||||
:markdown
|
||||
We added two properties to the formerly empty component: `title` and `myHero`.
|
||||
|
|
Loading…
Reference in New Issue