My data consists of an array of objects:
[{
name: "test",
type: 0,
speed: 50
}, {
name: "test2",
type: 4,
speed: 10
}, {
name: "test3",
type: 4,
speed: 67
}, {
name: "test4",
type: 2,
speed: 40
}]
I am looking to display this array using ng-repeat. So far, so good...
Now, I am interested in adding buttons that filter the array based on specific criteria.
For example, one button would only show objects with a speed greater than X, while another button would only show objects with a type of Y and so on...
While I am familiar with angular filters, I am having trouble understanding how to apply them to suit my requirements.
Any help or guidance would be greatly appreciated!