declare a variable called it filter
filter: boolean= false;
then use ngModel in html part to access and assign its value.
<input type="checkbox" [(ngModel)]="filter" (click)="filterData()">
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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…