Pick the right attribute valud 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:

<form name="mainForm">
  <div ng-form="subForm">
    ...
  </div>
</form>

-> mainForm.subForm will not be available

-----------------

<form name="mainForm">
  <div ng-form="whateverValue" name="subForm">
    ...
  </div>
</form>

-> while it will work in this case.