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

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

Closed
wants to merge 1 commit into from

Commits on Jun 18, 2013

  1. 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.
    lastnico committed Jun 18, 2013
    Configuration menu
    Copy the full SHA
    cdefeec View commit details
    Browse the repository at this point in the history