171
rated 0 times
[
176]
[
5]
/ answers: 1 / hits: 27335
/ 12 Years ago, tue, august 21, 2012, 12:00:00
I want to use regex in ng-repeat. I have tried the following code but its not working.
<div ng-repeat=user in users | filter:{'type':/^c5$/}></div>
I have users array and I only want to display the users with type c5.
If I use
filter:{'type':'c5'}
then its displaying the users with type ac5x too, because its contains c5.
How can I solve this problem? Maybe there is another solution.
Thank You!
More From » regex