I want to check is checkbox is checked or unchecked in an if and else statement.
Ch
We can look at source code of material checkbox:
event.source = this;
event.checked = this.checked;
this._controlValueAccessorChangeFn(this.checked);
this.change.emit(event);
https://github.com/angular/material2/blob/2.0.0-alpha.11/src/lib/checkbox/checkbox.ts#L288-L292
So you can do it like:
mon(e){
if(e.checked){
console.log("This is checked")
} else {
console.log("unchecked");
}
}