I want to check is checkbox is checked or unchecked in an if and else statement.
Ch
declare a variable called it filter
filter: boolean= false;
then use ngModel in html part to access and assign its value.
it will call a function filterData() which you can use to do all your functionality
filter(){
this.filter = !this.filter;// this will change value of it true and false
}
for more checkbox you can use declare more variable like filter1: boolean