0
<table ng-table="demo.tableParams" class="table table-condensed table-bordered table-striped">
<tr ng-repeat="row in $data">
<td data-title="'Name'" filter="{name: 'text'}">{{$index}}</td>
<td data-title="'Age'" filter="{age: 'number'}">{{row.age}}</td>
<td data-title="'Money'">{{row.money}}</td>
<td data-title="'Country'" filter="{ country: 'select'}" filter-data="demo.countries">{{row.country}}</td>
</tr>
</table>
</div>
インデックス番号を印刷するには{{$index}}
があります。私はフィルタを使用して簡単にフィルタすることができることを理解する= {age: 'number'}
しかし、私は$index
のために同じことをすることができませんJSのデータセットの一部です。
$index
を入力ボックスでフィルタリングできるようにするには、ページの読み込み時に自動的にフィルタリングするのではなく、
私はこの上で2日間過ごしました。あなたのソリューションはきれいで清潔です。ありがとうございました!!!!!!!!!!!!!!!!!!!!!!!!!!! – Tosm