Looking for a solution to my current issue where I need to implement a filter on ng-repeat results using a text box. Specifically, I want the filter to target only one particular column when a hashtag is used as the first character in the search term. For instance:
- Default behavior: Filter based on text entered in the search box, applying the filter to all attributes of each user.
Filter by a single attribute when a user enters a hashtag followed by a value.
#ID: 33
This will filter users with an ID containing '33'.
#date: 1/12/2014
This will filter users with the specified date.
var users = [{ "name": "Bruce", "city": "Thailand", "date": "1/12/2014", "id": 3376848 }, { "name": "Frank", "city": "Bangladesh", "date": "11/10/2014", "id": 4482771 }, { "name": "Judith", "city": "Philippines", "date": "13/9/2015", "id": 4981921, }, { "name": "Earl", "city": "Ukraine", "date": "21/6/2015", "id": 4024523, }];