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

Support binding of form input name #3155

Closed
@mike-spainhower

Description

@mike-spainhower

Currently if you try something like

<form name='myForm'>
    <input type='text' name='{{varInScope}}'></input>
</form>

then the errors and other values are placed on $scope.myForm['{{varInScope}}'] rather than $scope.myForm['']

Having something like ng-name that added support for this would be immensely useful for dynamic generation of forms (e.g., with inputs under an ng-repeat).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions