KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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!
Tags (comma-separated)
Save Edits
Cancel