Currently, I have a search box that successfully searches values in a table using my code.
<tr ng-repeat="b in bugs | filter:searchText">
Now, I want to take it one step further by allowing users to search specific columns if they include a colon in their search text (e.g. "id: 3").
I've been able to split the search text into the column name and field text.
I've heard that in AngularJS you can use searchText.id to filter specific columns. However, since my table has numerous columns and I only have a string of the column name, I'm not sure how to proceed.
So, my question is, what would be the most effective way to dynamically set the column being filtered?