angularjs - Angular - Filtering a list where { Item.user.id : something } -
i have list of "savings" in ng-repeat. model savings is
var savingschema = new schema({ title: { type: string, }, link: { type: string, }, user: { type: schema.objectid, ref: 'user' } });
therefore need saving.user._id
im trying like
<div ng-repeat="saving in savings|filter:{ 'user._id': 'otherid' }">
but doesnt user._id
works fine ._id
if want filter top level _id
not embedded user._id
how filter embedded user._id
left side parameter
Comments
Post a Comment