Would like to do the following in the ng-repeat of a dropdown:
- Fetch from JSON the
categoriesof the variableproduct - Break down the
categoriesarray into new lines - Filter with
unique - Display in dropdown
I have a demonstration at Plunker, and as you see, I've achieved the filter but I could not find a way to break the array and filter it.
My goal is to make a filter with the JSON requested and make a filter on the fly with the categories available.