This is my repeat filter.
<div ng-repeat="f in fs | filter: v.list[vId].make.makerId | limitTo: 12">
make.makerId is an integer value equal to the vId in this sample list.
[{ vId: 28, qty: 21.07, fDate: "17/07/2013", price: 0.00 },
{ vId: 2, qty: 24.26, fDate: "15/06/2013", price: 0.00 },
{ vId: 2, qty: 22.16, fDate: "22/05/2013", price: 0.00 },
{ vId: 28, qty: 22.16, fDate: "28/05/2013", price: 0.00 },
{ vId: 72, qty: 22.16, fDate: "29/05/2013", price: 0.00 },
{ vId: 72, qty: 30.16, fDate: "30/05/2013", price: 0.00 },
{ vId: 28, qty: 25.98, fDate: "04/05/2013", price: 0.00 }]
When vId = 28, I get:
{ vId: 28, qty: 21.07, fDate: "17/07/2013", price: 0.00 },
{ vId: 28, qty: 22.16, fDate: "28/05/2013", price: 0.00 },
{ vId: 28, qty: 25.98, fDate: "04/05/2013", price: 0.00 }
When vId = 72, I get:
{ vId: 72, qty: 22.16, fDate: "29/05/2013", price: 0.00 },
{ vId: 72, qty: 30.16, fDate: "30/05/2013", price: 0.00 }
All cool so far, but when vId = 2, I get the whole list. Every instance of a 2 seems to be extracted, does anyone know how to fix this?
Thanx
Steve