How can I get checkbox value without using ngModel (cause I don't want to declare field variable for every checkbox)
when code be like :
<input type="checkbox" (click)="foo(bar)">
and
public foo(bar) {
console.log(bar);
}
Expected output is true or false (whatever that shows checkbox status)