角度のテーブルの下部にページ区切りの詳細を表示したいと思います。 私はこれらのコードを試してみてください。角度の12の結果の1から10を表示する方法
<table>
<tr dir-paginate="reject in rejects|orderBy:sortKey:reverse|filter:search|itemsPerPage:itemsPerPage"
current-page="currentPage" style="border-bottom: solid 1px #ccc">
<td>@{{itemsPerPage *(currentPage-1)+$index+1}}</td>
<td><a ng-href="recorddetail/@{{reject.rec_id}}"
style="text-decoration: none;">@{{reject.fullname}}</a></td>
<td>@{{reject.name}}</td>
<td>@{{reject.id}}</td>
<td>@{{reject.placeofb}}</td>
<td>@{{reject.dateofb}}</td>
</tr>
</table>
<div style="float: left">
<span>Showing Result @{{itemsPerPage *(currentPage-1)+$index+1}} to @{{
(itemsPerPage * currentPage) }} of @{{rejects.length}}</span>
</div>
<dir-pagination-controls
page-size="1" direction-links="true"
boundary-links="true" style="margin-top: 0; float: right;margin-bottom:
10px;">
</dir-pagination-controls>
はどのような角度でのページと検索ページで「72の結果の10にショー1」を得ることができますか?
角度データ型を試してみてください。あなたが望むものすべてをやります。 – johan
@ johan:テンプレートが組み込まれていますか? –
' - > paginate()'メソッドで生成されたjsonからすべての情報を取得できますが、ビュー上で変更するためのスクリプトを書く必要があります。https://laravel.com/docs/5.5/pagination#converting -results-to-json – aaron0207