In angularjs ng-change="chk(query)" call function when space is hit after
typing word
I am using following code to take input from user and search the term
the problem is that if I press any word function gets called but when I
press spacebar it is not calling the function so I want if user enters
space then also the function should get called
<input ng-model="query" ng-change="chk(query)" placeholder="Search..">
so please can anyone suggest me with the solution please
Thank you
I tried to use ng-trim="false" but not working
No comments:
Post a Comment