[英]Pagination table - Angular 2
我有一個200行的table
,我想在不同的頁面顯示它們(每頁10個)
<table class="table table-striped table-condensed table-hover table-bordered pointer">
<thead>
<th>ID</th>
</thead>
<tbody>
<tr *ngFor="let car of cars;let i = index">
<td>{{car.ID}}</td>
</tr>
</tbody>
</table>
以下是關於如何在Angular中實現分頁的非常好的解釋:
Angular 2/5 - 像Google這樣的邏輯分頁示例
您可以在我制作的示例網站上看到我如何實現此示例的示例,您可以在此處獲取我的GitHub存儲庫中的完整源代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.