2017-02-22 18:13:21 +00:00
|
|
|
// #docregion
|
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
|
|
|
import { heroes } from './hero';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'my-app',
|
|
|
|
templateUrl: './app.component.html',
|
2018-03-13 18:06:13 +01:00
|
|
|
styleUrls: ['./app.component.css']
|
2017-02-22 18:13:21 +00:00
|
|
|
})
|
|
|
|
export class AppComponent {
|
|
|
|
heroes = heroes;
|
|
|
|
hero = this.heroes[0];
|
2018-03-13 18:06:13 +01:00
|
|
|
heroTraits = ['honest', 'brave', 'considerate'];
|
2017-02-22 18:13:21 +00:00
|
|
|
|
|
|
|
// flags for the table
|
2018-03-13 18:06:13 +01:00
|
|
|
|
2017-02-22 18:13:21 +00:00
|
|
|
attrDirs = true;
|
|
|
|
strucDirs = true;
|
|
|
|
divNgIf = false;
|
|
|
|
|
|
|
|
showId = true;
|
|
|
|
showDefaultTraits = true;
|
|
|
|
showSad = true;
|
|
|
|
}
|