angular/angular.js — pull request #2997 by lastnico (2013-06-18 07:59:48+00:00)
Title: Pick the right attribute valud for form.$name if ng-form directive is used as an attribute

Pick the right attribute value for form.$name if ng-form directive is used as an attribute.

This is especially important when you want your inner form to be published as a control of its parent form.

Currently, if you have this code snippet:

```html

...

```

-> mainForm.subForm will not be available

-----------------

```html

...

```

-> while it will work in this case.