Currently I have a textbox and I am using a controller method inside ng-enter directive to save the data entered in the text box.
<input ng-enter="callMeToSave()"/>
The issue is when I press enter button twice by mistake the controller method mentioned inside ng-enter is being called twice. Is there a way to restrict this from happening? Any help would be much appreciated.