vatsal chauhan
vatsal chauhan

Reputation: 3

get value of dynamic ng-model value

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

Answers (1)

tymeJV
tymeJV

Reputation: 104795

Since it's your ngModel - you should have access to it via $scope.control[indexValue]

Upvotes: 2

Related Questions