SyntaxFix
Write A Post
Hire A Developer
Questions
An alternative is to use standard directive ng-keypress="myFunct($event)"
ng-keypress="myFunct($event)"
Then in your controller you can have:
... $scope.myFunct = function(keyEvent) { if (keyEvent.which === 13) alert('I am an alert'); } ...