Trigger search as soon as user is done with editing


#1

How to implement Search bar.Once user inputs the String data , I want to trigger a function .
basic looking for binding the input field with some event call back like doneEditing and then firing the required function.


#2

You can use onblur event which will be triggered once the user moves the cursor out of the input field. If you are using a mobile, then you can use ng-enter function on the input field.

<input type="search" placeholder="Search here" ng-enter="searchString()"/>

#3

Thanks, Can you also suggest how to get the event for button Done on Keyboard Accessory Bar?