I\'m a fish in AngularJS and I have this scenario.
submit
Use HTML5's form attribute, here's a sample:
form
angular.module('app', []) .controller('MyCtrl', ['$scope', function($scope) { $scope.submitted = false; $scope.confirm = function() { $scope.submitted = true; }; }]);
form { padding:5px; border: 1px solid black }
JS Bin My Input The form was submitted
The form was submitted