I need help with objects that have the following format:
id: 1,
name: MyObj
properties: {
owners: [
{
name:owner1,
location: loc1
},
{
name:owner2,
location: loc1
}
]
}
Each object can have a different number of owners. I'm trying to filter these objects using ng-repeat
with filter:searchBox
and search box inputs
<input name="search-filter" class="form-control" type="search" ng-model="searchBox.properties.title" />
<input name="search-filter" class="form-control" type="search" ng-model="searchBox.properties.owners" />
The filtering works perfectly based on title, but for owners it doesn't seem to work at all, even though I expected it to filter using both location and name. Can someone please point out what I might be doing wrong?