docs(ngSubmit): clarify that there must be no action attribute

This commit is contained in:
Pete Bacon Darwin 2013-06-11 19:51:07 +01:00
parent 4953b49761
commit b6ff8d751f

View file

@ -220,7 +220,8 @@ forEach(
* Enables binding angular expressions to onsubmit events. * Enables binding angular expressions to onsubmit events.
* *
* Additionally it prevents the default action (which for form means sending the request to the * Additionally it prevents the default action (which for form means sending the request to the
* server and reloading the current page). * server and reloading the current page) **but only if the form does not contain an `action`
* attribute**.
* *
* @element form * @element form
* @param {expression} ngSubmit {@link guide/expression Expression} to eval. * @param {expression} ngSubmit {@link guide/expression Expression} to eval.