How do i create server side filtering in angular using multiple checkboxes and when i click on apply filters the data should get filtered based on input fields checked and clicking clear filters should be removed and all data should be displayed. Here is json
{
items:[
{itemName:"apple",itemCategory:"fruits",itemStatus:"available",shipping:"nonshippable"},
{itemName:"mobile",itemCategory:"electronics",itemStatus:"notavailable",shipping:"shippable"},
{itemName:"camera",itemCategory:"gadgets",itemStatus:"available",shipping:"shippable"},
{itemName:"laptop",itemCategory:"computers",itemStatus:"notavailable",shipping:"shippable"},
{itemName:"jeans",itemCategory:"clothes",itemStatus:"available",shipping:"shippable"},
{itemName:"nike",itemCategory:"shoes",itemStatus:"available",shipping:"shippable"},
],
filters:[
{label:"apple"},
{label:"laptop"},
{label:"jeans"},
{label:"nike"},
{label:"camera"}
]
}
As you see my filter json and items both are in same json file.