(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
|
||||||
// #docregion start
|
|
||||||
import {Component, bootstrap} from 'angular2/angular2';
|
import {Component, bootstrap} from 'angular2/angular2';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -16,9 +15,4 @@ export class AppComponent {
|
||||||
myHero = 'Windstorm';
|
myHero = 'Windstorm';
|
||||||
}
|
}
|
||||||
|
|
||||||
// #enddocregion start
|
|
||||||
/*
|
|
||||||
// #docregion start
|
|
||||||
bootstrap(AppComponent);
|
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.
|
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:
|
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
|
:markdown
|
||||||
We added two properties to the formerly empty component: `title` and `myHero`.
|
We added two properties to the formerly empty component: `title` and `myHero`.
|
||||||
|
|
Loading…
Reference in New Issue