Not sure if this is possibly with Angular but it would be lovely it was.
Say I have a json object of cars. So lots of models and lots of makes (Ford, Vauxhall, Volkswagon, etc). I am then going to use a data-ng-repeat to list all the cars.
But I want to list of checkboxes to be able to filter by make of car. I won't know the possibly makes of cars until I get the JSON, so I can't pre-populate the list.
Here is a quick demo http://jsbin.com/AkiGaLO/3/edit
Now I could separately loop through all items, pull out the make, check if the make exists in another array, if not throw it in. But that all seems tiresome really :) and I could potentially be dealing with thousands of objects.
So is there a quick win in Angular? Or in normal JS for that matter.
Cheers