I am using a textarea for searching a table, all in an angular2 application with bootstrap.
My code was searching in one column, now I want the search term to be looked up across two columns, and the user will see all the matched table rows highlighted.
HTML:
<input class="form-control" id="search" [(ngModel)]="searchString" type="text" placeholder="Search by Book ID.." style="float:right;"
value="">
<tr *ngFor="let books of bookDetails |jobsearch:{ bookId: searchString} : false | paginate: { itemsPerPage: 50, currentPage: p };">
The other column that I want to be searched is 'bookName'.