Skip to content
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 opened this issue Jul 7, 2013 · 2 comments
Closed

Support binding of form input name #3155

mike-spainhower opened this issue Jul 7, 2013 · 2 comments

Comments

@mike-spainhower
Copy link

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).

@lgalfaso
Copy link
Contributor

lgalfaso commented Jul 8, 2013

Have you looked at #3135?

@mike-spainhower
Copy link
Author

Redundant, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants