ngmodel vs ngmodelchange code example
Example: ngmodel vs (ngmodel)
[ngModel]="name" is the syntax for one-way binding, while,
[(ngModel)]="name" is for two-way binding, and the syntax is compound from:
[ngModel]="name" and (ngModelChange)="name = $event"
//If you only need to pass model, use the first one.
//If your model needs to listen change events
//(e.g. when input field value changes),
//use the second one.