mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 08:57:54 +08:00
docs(ngSubmit): add link to form docs to discourage double submission
Closes #6017
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user