ng-submit

Enables binding angular expressions to onsubmit events on a fa-surface.

Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page), but only if the form does not contain action, data-action, or x-action attributes.

**Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and `ngSubmit` handlers together. See the TODO:`form` directive documentation for a detailed discussion of when `ngSubmit` may be triggered.

Usage

<ANY ng-submit="expression">

</ANY>

API

Attr Type Details
ngSubmit expression

Expression to eval. (Event object is available as $event)

Example

  Edit in Plunker