While working with Angular, I am attempting to filter data using ng-repeat based on the FactorName property in the given schema.
Unfortunately, trying to use
<... ng-model="query.Factors.FactorName" ...> as a filter does not produce the desired results. It seems like filtering this way is uncommon based on my research.
My question is: Can Angular support filtering based on a property of elements within a subarray?
[
{
"Name":"1",
"Factors":[
{
"FactorName":"FactorOne",
"Type":"SomeType"
},
{
"FactorName":"FactorTwo",
"Type":"SomeType"
}
]
},
{
"Name":"2",
"Factors":[
{
"FactorName":"FactorThree",
"Type":"SomeType"
},
{
"FactorName":"FactorFour",
"Type":"SomeType"
}
]
}
]