ngSubmit
(directive in module ng
)
Enables binding angular expressions to onsubmit events.
Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page).
<form ng-submit="{expression}"> ... </form>as class
<form class="ng-submit: {expression};"> ... </form>
ngSubmit – {expression} –
Expression to eval.