mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
e85021a7ba
All components, directives and pipes will now use standalone as default. Non-standalone decorators have now . PR Close #58160
11 lines
229 B
TypeScript
11 lines
229 B
TypeScript
import {Component, Input} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-title',
|
|
template: '<h1>{{ appName }} app is running!</h1>',
|
|
standalone: false,
|
|
})
|
|
export class TitleComponent {
|
|
@Input() appName = 'Unknown';
|
|
}
|