Is there a way to prevent filtering when entering certain numbers in the text box, like 0 or 5?
<div ng-app="">
<input type="text" ng-model="search">
<div ng-repeat='val in [1,2, 3, 4] | filter:search'>
{{val}}
</div>
I'm just starting to learn angular. Can anyone advise me on how to achieve this?
I've provided a JSFiddle link for reference.