How to deal with the non-interpolation of the ngModelController and FormController
“People often want to use form controls in an ngRepeat and so on, without losing the validation benefits that Angular provides. Unfortunately, as of 1.2.4, the ngModelController and FormController do not interpolate their names”
This issue has been reported here.
I had this problem when I was trying to generate specific ids using interpolation. The form controls that was injected in the scope didn’t had the interpolated values.
To solve this issue, we have to create a directive to interpolate the values before the form controls are injected in the scope.
Before the form controls are injected in the scope, the values are now interpolated.
This technique can be used with ngForm also.
Special thanks to the guys on #angularjs on freenode that helped me solve this issue and to provide a link with the solution.