I have the following input box with ng-options :
<input ng-model="name" ng-model-options="{ updateOn: 'blur'}"
ng-change="addNewDpt()" type="text">
$scope.addNewDpt = function(){
// code
}
If I make some entry in the text box and click the mouse somewhere outside
the input text box then function addNewDpt is getting executed and also the
model name is getting update properly, which is fine. Now I want the same
to happen, if I click enter or tab keys in the text box. How can I achieve
it?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.