这里当我尝试在模式中弹出值时,为什么值不在文本框中绑定但在文本框{{emp.E_Name}}
之外,其工作正常
<form novalidate name="f1" ng-submit="SaveDb(emp)">
<div class="col-sm-8">
<input type="text" name="nam" class="form-control" data-modal="modal" ng-model="emp.E_Nam" ng-class="Submitted?'ng-dirty':''" required autofocus />
{{emp.E_Name}}
答案 0 :(得分:1)
您输错了ng-model="emp.E_Nam"
应为ng-model="emp.E_Name"