[(ngModel)] is two way binding to exchange data from the component to view and from view to the component. [ngModel] is one way binding, but it gave me the same behaviour as [(ngModel)].
with [ngModel], i can get the value from the component and display it in the view, and i can set the value from view to component also. if [ngModel] a one way binding, how can we exchange data between compnent and view like that. I'm really confused about this two annotations.
Another quesion, is ngModel wich is used with ngform a one way binding?
<input class="form-control" type="text" name="designation" [ngModel]="currentProduct.name">
give the same thing as:
<input class="form-control" type="text" name="designation" [(ngModel)]="currentProduct.name">