16 lines
309 B
TypeScript
16 lines
309 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'my-app',
|
|
templateUrl: './app.component.html'
|
|
})
|
|
export class AppComponent {
|
|
showHeading = true;
|
|
heroes = ['Magneta', 'Bombasto', 'Magma', 'Tornado'];
|
|
|
|
toggleHeading() {
|
|
this.showHeading = !this.showHeading;
|
|
}
|
|
}
|