Can I use NgModel for interaction of the components or use only inputs and events?
NgModel should only be used in forms?
Can I use NgModel for interaction of the components or use only inputs and events?
NgModel should only be used in forms?
ngModel
can be used when a ControlValueAccessor
is provided for components. Angular provides ControlValueAccessor
implementation for <input>
elements out of the box.