angular/integration/cli-elements-universal/src/app/title.component.ts

10 lines
210 B
TypeScript
Raw Normal View History

import { Component, Input } from '@angular/core';
@Component({
selector: 'app-title',
template: '<h1>{{ appName }} app is running!</h1>',
})
export class TitleComponent {
@Input() appName = 'Unknown';
}