docs(ngSubmit): add link to form docs to discourage double submission

Closes #6017
This commit is contained in:
Peter Bacon Darwin
2014-07-31 21:26:27 +01:00
parent 98ff901bda
commit b7a2deed30

View File

@@ -307,6 +307,13 @@ forEach(
* server and reloading the current page), but only if the form does not contain `action`,
* `data-action`, or `x-action` attributes.
*
* <div class="alert alert-warning">
* **Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and
* `ngSubmit` handlers together. See the
* {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}
* for a detailed discussion of when `ngSubmit` may be triggered.
* </div>
*
* @element form
* @priority 0
* @param {expression} ngSubmit {@link guide/expression Expression} to eval.