Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5491667

Browse files
committed
docs(ngForm): clarify the purpose of ngForm
Related to #6704 and #2513.
1 parent 2e3a972 commit 5491667

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ng/directive/form.js

+4
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ function FormController(element, attrs, $scope, $animate) {
215215
* does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a
216216
* sub-group of controls needs to be determined.
217217
*
218+
* Note: the purpose of `ngForm` is to group controls,
219+
* but not to be a replacement for the `<form>` tag with all of its capabilities
220+
* (e.g. posting to the server, ...).
221+
*
218222
* @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into
219223
* related scope, under this name.
220224
*

0 commit comments

Comments
 (0)