mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
// #docplaster
|
|
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
// #enddocregion
|
|
/*
|
|
// #docregion template
|
|
template: '<h1 highlight>{{title}}</h1>'
|
|
// #enddocregion template
|
|
*/
|
|
// #docregion
|
|
template: '<app-title [subtitle]="subtitle"></app-title>'
|
|
})
|
|
export class AppComponent {
|
|
subtitle = '(v1)';
|
|
}
|
|
// #enddocregion
|