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