Reputation:
i have a form with the angular values in it.
<tr ng-repeat="alldata in c.da">
<td>{{alldata.id}}</td>
<td><input type="text" class="form-control" value="{{alldata.name}}" /></td>
<td><input type="text" class="form-control" value="{{alldata.numbers}}" ng-model="contact.number" /></td>
<td><button type="submit" class="btn btn-primary" ng-model="alldata.contactid" value="{{alldata.id}}">Save</button></td>
</tr>
when i add the ng-model
the value is not displaying.
Upvotes: 0
Views: 49
Reputation: 262464
Why do you want value
when you also have ng-model
?
You can set the value via the model.
Upvotes: 1