I have added a check box in the web page which will filter all the removed device when it is checked and it will show all the devices including removed one when it is unchecked . Below is my code for that ;
customFilter(filterName)
{
this.tableRef.filter(this.isRemoveFilter? '': filterName, 'status', 'equals')
this.isRemoveFilter=!this.isRemoveFilter;
}
<input type="checkbox" id="myCheck" (click) = "customFilter('removed')" />
<label for="myCheck">Show removed?</label>
But I want to modify my code as when the check box is unchecked then it should not show removed devices