Nestable alias of form
directive. HTML does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a sub-group of controls needs to be determined.
Note: the purpose of ngForm
is to group controls, but not to be a replacement for the <form>
tag with all of its capabilities (e.g. posting to the server, ...).
<ng-form [name="string"]> ... </ng-form>
<ANY [ng-form="string"]> ... </ANY>
<ANY class="[ng-form: string;]"> ... </ANY>
Param | Type | Details |
---|---|---|
ngForm | name (optional) | string | Name of the form. If specified, the form controller will be published into related scope, under this name. |
© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.4.14/docs/api/ng/directive/ngForm