angular/angular.js — pull request #2988 by Pasvaz (2013-06-17 14:46:54+00:00)
Title: feat(ngName): allow interpolated name for form controls

ngName allows forms' fields to set their name dynamically, especially useful with ngRepeat.
Right now is not possible to validate form controls like this: ``````
The current work-around is to use one nested form for each field but indeed it's an hack rather than a solution.

This implementation could be moved inside the directive ```ngModel``` or within its own directive ```ngName```, I left intentionally it in the NgModelController because it's slightly faster, however I can refactor it as you prefer.

this fixes also the issues #1404 and #2426