Binding value to input in Angular JS

后端 未结 5 1765
情歌与酒
情歌与酒 2020-12-13 18:20

I have input like this


I want to ch

5条回答
  •  一整个雨季
    2020-12-13 18:48

    Use ng-value for set value of input box after clicking on a button:

    "input type="email"  class="form-control" id="email2" ng-value="myForm.email2" placeholder="Email"
    

    and

    Set Value as:

     $scope.myForm.email2 = $scope.names[0].success;
    

提交回复
热议问题