Which directive is used in Angular for two-way data binding in template-driven forms?

  • (ngBind)
  • [(ngModel)]
  • [bind]
  • {{ngBind}}
In template-driven forms, [(ngModel)] is used for two-way data binding. It allows you to bind the value of an input field to a model property, so changes to the input field are reflected in the model and vice versa. [(ngModel)] is a key directive for achieving this bi-directional data flow.
Add your answer
Loading...

Leave a comment

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