docs(ngSubmit): ngSubmit also works with the data-action/x-action attributes

The documentation states only the "action" attribute triggers this, which is incorrect. When using
the attribute "data-action" (as for AJAX control, attempting to bypass the "action" attribute but
still make it obvious what its for), Angular thinks this is also classified as "action" and
continues with the page submission.

Closes #6196
This commit is contained in:
James Wagoner
2014-02-10 00:17:08 -08:00
committed by Caitlin Potter
parent 945fc1a4bc
commit a68624444a
+2 -2
View File
@@ -298,8 +298,8 @@ forEach(
* 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) **but only if the form does not contain an `action`
* attribute**.
* server and reloading the current page), but only if the form does not contain `action`,
* `data-action`, or `x-action` attributes.
*
* @element form
* @priority 0