model change function angular code example
Example: angular model change
<input type="checkbox" (ngModelChange)="myModel=$event" [ngModel]="mymodel">
<input type="checkbox" (ngModelChange)="myModel=$event" [ngModel]="mymodel">