Angular Dynamic Ng-model Name
Solution 1:
It should use []
to assign create a array for ng-model
variable & also Value attribute should be ng-value
to ensure binding with check box
HTML
<input ng-attr-name="{{type.Id}}"
ng-model="formData['disclosureQuestionsPrepopulate'+($index + 1)]"
ng-click="option.selected = true"type="radio" ng-value="true"/>Yes
Post a Comment for "Angular Dynamic Ng-model Name"