I need to display the value of $scope.value
in the console.log after clicking the input field where I have selected a number.
Here is 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>
Check out this Plunker for reference: http://plnkr.co/edit/g1t4pludTTIAJYKTToCK?p=preview
Thank you in advance for any help!