dynamically naming input controls in angularjs
I have a input element which I am trying to name dynamically, but I had no luck so far using angular js. neither <input type="text" name="resource.Name" ng-model="resource.Value" ng-required="resource.IsRequired"> nor <input type="text" name="{{resource.Name}}" ng-model="resource.Value" ng-required="resource.IsRequired"> works for me. When I try to access name attribute it always comes back as resource.Name instead of the value it contains. The main reason I am trying to name this input control is validation, if user does not enter text in the field, I would like to tell them which textbox is