我使用ng-repeater綁定HTML表格中的數據現在我需要顯示錶中的複選框取決於db值是否爲true。數值正確存儲我無法在表格中顯示,請給予幫助。在MEANSTACK中的X可編輯複選框angularjs
<tr dir-paginate="contacts in contactdetail |itemsPerPage:5| filter:search | orderBy:orderByField:reverseSort " ng-class-odd="'odd'">
<td id="Ftablerowcolor">
<span contenteditable="true" e-ng-change="applyHighlight($data)" editable-text="contacts.FirstName" e-name="FirstName" e-form="rowform" onaftersave="Fclick(contacts._id,contacts.FirstName)">{{ contacts.FirstName || 'empty' }}
</span>
</td>
<td ng-click="rowform.$show()" id="Ltablerowcolor">
<span e-ng-change="applyHighlight($data)" editable-text="contacts.LastName" e-name="LastName" e-form="rowform" onaftersave="Lclick(contacts._id,contacts.LastName)">{{ contacts.LastName || 'empty' }}
</span>
</td>
<td ng-click="rowform.$show()" id="Etablerowcolor">
<span e-ng-change="applyHighlight($data)" editable-text="contacts.Email" e-name="Email" e-form="rowform" onaftersave="Ehkclick(contacts._id,contacts.Email)">{{ contacts.Email || 'empty' }}
</span>
</td>
<td ng-click="rowform.$show()" id="Ctablerowcolor">
<span e-ng-change="applyHighlight($data)" editable-text="contacts.DisplayName" e-name="DisplayName" e-form="rowform" onaftersave="Dhkclick(contacts._id,contacts.DisplayName)">{{ contacts.DisplayName || 'empty' }}
</span>
</td>
<td id="Ntablerowcolor" >
<span editable-checkbox="contacts.Number" e-name="enabled" e-form="rowform"></span>
</td>
</tr>
發表您的NG重複的代碼。 – Jenny
嗨@jenny我在這裏發佈的ng-repeat代碼iam使用dir-paginate進行分頁 – jose