Is borrowed items an array or an object whose values are items? --- R. Mark Volkmann Object Computing, Inc.
> On Mar 5, 2014, at 5:18 AM, Marc B <[email protected]> wrote: > > Hello, > > I use ng-repeat to iterate through a collection of objects. I only want to > show objects whose 'contactId' value meets critria: should be equal to the > value of key contactId value in current scope. > > Data (collection borrowedItems)): > > -JHGlra-5RimMcchhrlH > contactId: > endDate: > name: > notes: > pict: > startDate: > > So I have other objects and dont' want to show them. Just this one wih > contactId '-JHE7DYj-Ny8wMgSAqpN' > > Key $scope.contactId contains the value of key I want to filter on but even > if I use the literal value '-JHE7DYj-Ny8wMgSAqpN' all items are displayed: > > <tr ng-repeat="item in borrowedItems | > filter:{contactId:'-JHE7DYj-Ny8wMgSAqpN'}" > ng-controller="itemDetailController"> > > For clarity I added a column displaying the current item's contactId > {{item.contactId}}. > > > -JHE6v38rhYJsHhscDli > 24 February 2014 > 06 March 2014 > Draadloos toetsenbord > Voor op de computer > -JHE6v38rhYJsHhscDli > 10 March 2014 > 12 March 2014 > Bananenhouder > DAar kan ik een h... > -JHE6v38rhYJsHhscDli > 05 March 2014 > 12 March 2014 > stoeltjes lift > Dan hoef ik niet ... > -JHE7DYj-Ny8wMgSAqpN > 05 March 2014 > 08 March 2014 > resikoffer > Voor op reis naar... > > > What am I doing wrong here?? > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
