mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6270bba056
This is after we've slightly changed a rule in #66056
13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'my-app',
|
|
template: `<h1>Hello {{ name }}</h1>`,
|
|
standalone: false,
|
|
})
|
|
export class AppComponent {
|
|
name = 'Angular';
|
|
@Input() appInput = '';
|
|
@Output() appOutput = new EventEmitter<string>();
|
|
}
|