Skip to content

Commit 1b25f80

Browse files
committed
docs(form): remove mention of interpolated control names not being supported
The docs state that interpolation cannot be used in control names. This used to be true, but not anymore. Closes angular#13520
1 parent 6cdbda7 commit 1b25f80

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ng/directive/form.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,9 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
337337
*
338338
* In Angular, forms can be nested. This means that the outer form is valid when all of the child
339339
* forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so
340-
* Angular provides the {@link ng.directive:ngForm `ngForm`} directive which behaves identically to
341-
* `<form>` but can be nested. This allows you to have nested forms, which is very useful when
342-
* using Angular validation directives in forms that are dynamically generated using the
343-
* {@link ng.directive:ngRepeat `ngRepeat`} directive. Since you cannot dynamically generate the `name`
344-
* attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an
345-
* `ngForm` directive and nest these in an outer `form` element.
346-
*
340+
* Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to
341+
* `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group
342+
* of controls needs to be determined.
347343
*
348344
* # CSS classes
349345
* - `ng-valid` is set if the form is valid.

0 commit comments

Comments
 (0)