我正在尝试使用ng-init = getNCandEmail()
函数绑定控制器中的数据,这是成功的。现在我想保存绑定值。有人请建议一个解决方案。该守则如下。
<div class="col-md-12">
<div class="form-group" ng-init="getNCandEmail()">
<table class="table table-hover table-responsive" id="table">
<tr style="background-color: #00bffa"> <td><b>The Following Non Conformance has been Added/Edited</b></td><td></td></tr>
<tr><td>NC Number:</td><td ng-repeat="i in ncDetail.MailList" ng-bind="i.IncidentID"></td></tr>
<tr style="background-color: #b0c4de"><td>Incident Title:</td><td ng-repeat="i in ncDetail.MailList">{{i.IncidentTitle}}</td></tr>
<tr><td>Date&Time:</td><td ng-repeat="i in ncDetail.MailList" >{{i.IncidentDate |jsonDate}}</td></tr>
<tr style="background-color: #b0c4de"><td>Summary:</td><td ng-repeat="i in ncDetail.MailList">{{i.Summary}}</td></tr>
<tr><td>RemedialAction:</td><td ng-repeat="i in ncDetail.MailList">{{i.RemedialAction}}</td></tr>
<tr style="background-color: #b0c4de"><td>ExactLoc:</td><td ng-repeat="i in ncDetail.MailList">{{i.ExactLoc}}</td></tr>
<tr><td>CompletedDate:</td><td ng-repeat="i in ncDetail.MailList">{{i.CompletedDate | jsonDate}}</td></tr>
</table>
</div>
</div>