ngmodel on change angular code example
Example 1: angular model change
<input type="checkbox" (ngModelChange)="myModel=$event" [ngModel]="mymodel">
Example 2: ngmodel onchange
(ngModelChange)="onModelChange()"
<input type="checkbox" (ngModelChange)="myModel=$event" [ngModel]="mymodel">
(ngModelChange)="onModelChange()"