我正在使用DataTables Jquery https://datatables.net/,但我正在使用AngularJS填充表格,但是当我使用Data Table的任何属性时结果消失,我认为这是因为正在运行页面然后运行代码js,用AngularJS填充表的正确方法是什么?
<table
class="table table-striped table-bordered table-hover table-checkable order-column"
id="sample_1">
<!--sample_1 -->
<thead>
<tr>
<th>ID</th>
<th>E-mail</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
<tr class="odd gradeX"
ng-repeat="obterUsers in ObterUsuarios | orderBy:'username'">
<td>{{obterUsers.id }}</td>
<td class="center">{{ obterUsers.username}}</td>
<td>
<div class="btn-group">
<button class="btn btn-xs green dropdown-toggle" type="button"
data-toggle="dropdown" aria-expanded="false">
Ações <i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#!/UsuarioAlteracao/{{obterUsers.id}}">
<i class="fa fa-edit"></i> Editar
</a></li>
<li><a ng-click="deleteUsuario(obterUsers)" href="">
<i class="fa fa-remove"></i> Excluir
</a></li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
有关节目的一些图片: