I am currently working with an array of records that are being displayed in an HTML table with filters in the header. However, I have encountered an issue where some values are transformed by filters, causing the ng-repeat filter to fail.
<table class="table">
<thead>
<tr>
<td><input ng-model="search.time" type="text" class="form-control" /></td>
</tr>
</thead>
<tbody>
<tr ng-repeat="record in records | filter: search">
<td>{{record.time | timeFormatter}}</td>
</tr>
</tbody>
</table>
One example is that the value "0800" is displayed as "08:00 AM" due to the timeFormatter filter. While typing "08" works for filtering, entering "08:" or "AM" does not produce the desired results.
I am seeking advice on how to adjust the filter so it can work with the formatted values shown in the table column. Your assistance is greatly appreciated.
Thank you in advance.