Submit form on pressing Enter with AngularJS

In this particular case, what options do I have to make these inputs call a function when I press Enter? Html: <form> <input type=”text” ng-model=”name” <!– Press ENTER and call myFunc –> /> <br /> <input type=”text” ng-model=”email” <!– Press ENTER and call myFunc –> /> </form> // Controller // .controller(‘mycontroller’, [‘$scope’,function($scope) { $scope.name=””; $scope.email=””; … Read more

How to detect pressing Enter on keyboard using jQuery?

I would like to detect whether the user has pressed Enter using jQuery. How is this possible? Does it require a plugin? EDIT: It looks like I need to use the keypress() method. I wanted to know if anyone knows if there are browser issues with that command – like are there any browser compatibility … Read more