I wan't to show in console.log $scope.value from input in which I have chosen the number, after click.
My code :
<table class="table table-bordered table-striped">
<thead>
<tr>
<th >Name
<th >System
</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="n in data">
<td style ="word-break:break-all;">{{n.name}}</td>
<td style="width:35px;">{{n.system}}</td>
<td><input class="form-control input-sm" type="number" name="input" ng-model="value"
min="0" max="100" style="width:55px;">
</td>
</tr>
</tbody>
</table>
<button ng-click="postapi()">Value</button>
Plunker : http://plnkr.co/edit/g1t4pludTTIAJYKTToCK?p=preview
Thanks for answers in advance!
valueinstead binding each element to it's own value likeng-model="n.value"insteadng-model="value"? With your approach you will have the same value for all items indata