I'm trying to create a search dropdown with multiple category types with ui-select. I'm having trouble trying to figure out how to flatten my data in order make this work. I can make one category work, but not multiples.
Something like this:
Right now my code looks something like this, which only shows the name category:
<ui-select ng-model="data.selected">
<ui-select-match placeholder=" ">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in flatData | propsFilter: {name: $select.search}">
<div ng-bind-html="item.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
Has anyone ever had to do something like this, could someone give me some advice?
