"app" is the default prefix for CLI projects when generating components. This updates our examples to conform that that default Closes #19778 PR Close #30789
26 lines
482 B
TypeScript
26 lines
482 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
import { heroes } from './hero';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent {
|
|
heroes = heroes;
|
|
hero = this.heroes[0];
|
|
heroTraits = ['honest', 'brave', 'considerate'];
|
|
|
|
// flags for the table
|
|
|
|
attrDirs = true;
|
|
strucDirs = true;
|
|
divNgIf = false;
|
|
|
|
showId = true;
|
|
showDefaultTraits = true;
|
|
showSad = true;
|
|
}
|