更新时间:2023-10-14 08:44:52
我认为这个链接可以回答你的问题:
I think this link will answer your question:
我们需要实现两件事来实现这一目标:
We need to implement two things to achieve that:
ControlValueAccessor
将实现这个组件和 ngModel
/ngControl
ControlValueAccessor
that will implement the bridge between this component and ngModel
/ ngControl
上一个链接为您提供了一个完整的示例...
The previous link gives you a complete sample...