When it comes to [(ngModel)], data can flow back and forth between the component and view seamlessly. On the other hand, [ngModel] appears to be one way binding but surprisingly delivers the same functionality as [(ngModel)].
Using [ngModel], I am able to retrieve data from the component and display it in the view, while also being able to update the value from the view back to the component. If [ngModel] is supposed to be only one way binding, how does it manage this bidirectional data exchange? It's a bit perplexing to me.
I have another inquiry: Does ngModel, when paired with ngForm, operate as a one way binding?
<input class="form-control" type="text" name="designation" [ngModel]="currentProduct.name">
It seems to provide identical functionality as:
<input class="form-control" type="text" name="designation" [(ngModel)]="currentProduct.name">