The ______ directive provides two-way data binding in template-driven forms, synchronizing the form control's value with a property in the component.

  • [(ngModel)]
  • [formModel]
  • [ngBind]
  • [twoWayBinding]
The [(ngModel)] directive provides two-way data binding in template-driven forms. It allows you to bind a form control's value to a property in the component, ensuring that changes to either the form control or the component property are reflected in both directions. This synchronization is a key feature of Angular template-driven forms, making it easy to work with form data in the component.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *