Using Angular, I'm trying to filter using ng-repeat on FactorName given the following schema.
Filtering using
<... ng-model="query.Factors.FactorName" ...> doesn't work (not surprisingly).
I haven't seen literature on anyone trying to filter in this way.
Does Angular support filtering based on a subarray element property ?
[
{
"Name":"1",
"Factors":[
{
"FactorName":"FactorOne",
"Type":"SomeType"
},
{
"FactorName":"FactorTwo",
"Type":"SomeType"
}
]
},
{
"Name":"2",
"Factors":[
{
"FactorName":"FactorThree",
"Type":"SomeType"
},
{
"FactorName":"FactorFour",
"Type":"SomeType"
}
]
}
]