📅  最后修改于: 2022-03-11 14:56:07.586000             🧑  作者: Mango
@Component({...})
export class Component {
@Input() myInput: string|undefined;
}
OR
@Component({...})
export class Component {
@Input() myInput!: string;
}