Reputation: 3
I want to get ng-model's value in scope varialbe
<div class="form-group" data-ng-repeat="wing in getNumber(app.wingnum) track by $index">
<label for="InputMessage">Enter name of Wing </label>
<div class="input-group" >
<input type="text" class="form-control" name="" placeholder="Enter Name of wings"
ng-model="control[$index]"
ng-keyup="addNewWing()"required/>
</div>
</div>
Upvotes: 0
Views: 1039
Reputation: 104795
Since it's your ngModel
- you should have access to it via $scope.control[indexValue]
Upvotes: 2