Angular does that. When you provide an action
on the form, it should do exactly what you're trying to do (do a javascript thing, then submit the form).
In the plunk, you can see the $scope.submitted
say 'submitted' just before the form submission kicks the page over to the submitted.html