user3636439
user3636439

Reputation:

input value get hidden when ng-model is aded

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. Screen Shot

Upvotes: 0

Views: 49

Answers (1)

Thilo
Thilo

Reputation: 262464

Why do you want value when you also have ng-model?

You can set the value via the model.

Upvotes: 1

Related Questions