Currently, I am attempting to develop a custom filter that mimics the functionality of the standard Angular filter in HTML, with the distinction that it accepts a variable as input rather than a fixed value.
For instance, within my html document, you may come across something similar to this:
<tr ng-repeat = "item in Items | filter:{function:'1300'}">
<td>[[item.name]]</td>
</tr>
However, I aspire to have the flexibility to provide a variable instead of '1300', whose actual value can be determined when the user interacts with a button (which corresponds to a specific value).
I've attempted to replicate the built-in filter function by creating a filter.js file and invoking it within my controller without success.
If anyone could offer assistance, it would be greatly appreciated!