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