Skip to content

Commit b6ff8d7

Browse files
docs(ngSubmit): clarify that there must be no action attribute
1 parent 4953b49 commit b6ff8d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/directive/ngEventDirs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ forEach(
220220
* Enables binding angular expressions to onsubmit events.
221221
*
222222
* Additionally it prevents the default action (which for form means sending the request to the
223-
* server and reloading the current page).
223+
* server and reloading the current page) **but only if the form does not contain an `action`
224+
* attribute**.
224225
*
225226
* @element form
226227
* @param {expression} ngSubmit {@link guide/expression Expression} to eval.

0 commit comments

Comments
 (0)