Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用NgModel进行组件交互还是只使用输入和事件?
NgModel应该只在表单中使用?
ngModel可以在ControlValueAccessor为组件提供 a 时使用。Angular 提供了开箱即用的元素ControlValueAccessor实现。<input>
ngModel
ControlValueAccessor
<input>