📜  自定义 ngmodel - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.711000             🧑  作者: Mango

代码示例1



@Input()
myProp: string;

// Output prop name must be Input prop name + 'Change'
// Use in your component to write an updated value back out to the parent
@Output()
myPropChange = new EventEmitter();