That solution works, however, I am trying to also do the same thing but 
make the list dynamically reversible - so how do you also an orderBy filter 
controlled by a variable for reversed or not?  

I tried:

c in menu.categories | filter:search | orderBy:'$index':reverse track by 
$index

and several variations to no avail...

On Saturday, February 22, 2014 11:09:06 AM UTC-8, Estefano Castañeda wrote:
>
> This is a solution :D
>
> http://jsfiddle.net/w5cV5/1/
>
>
> El miércoles, 19 de junio de 2013 13:36:28 UTC-5, Alex Figueiredo escribió:
>>
>> I'm using the unstable version 1.1.5 and my *| filter:expression *won't 
>> work.
>>
>> My filter works when I don't have any duplicates in my list, but this is 
>> not my scenario.
>>
>> With duplicates and *track by* (doesn't work)
>> http://jsfiddle.net/nJu9A/
>>
>> Working without *track by*:
>> http://jsfiddle.net/nJu9A/1
>>
>> What am I doing wrong?
>>
>>

-- 
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/d/optout.

Reply via email to