I have a JSON like below:
var data = [
{
"id": 1,
"name"; "Test1",
"isPending": "false",
"isCompleted": "true",
"isRequired": "true",
"location": [
{
"city": "London",
},
{
"city": "New York",
}
]
},
{
"id": 2,
"name"; "Test2",
"isPending": "false",
"isCompleted": "false",
"isRequired": "true",
"location": [
{
"city": "Mumbai",
},
{
"city": "New York",
}
]
}
}
..
..
];
I want to have 5 checkboxes filters for fields below:
- Pending
- Completed
- Required
Cities:
1.Mumbai
2.London
I am displaying the data using ng-repeat.
How to apply filter in AngularJS having checkboxes for multiple fields. Basically it should work as OR operator.
Aucun commentaire:
Enregistrer un commentaire