ng-model for checkbox angularjs code example
Example: angular ngmodel checkbox
<input
type="checkbox"
[checked]="saveUsername"
(change)="saveUsername = !saveUsername"/>
<input
type="checkbox"
[checked]="saveUsername"
(change)="saveUsername = !saveUsername"/>