在这里,我尝试显示基于项目数量的分页。如果项目的数量超过了它应该显示的数量,那么other应该隐藏分页。
$scope.do = { showPaging: false };<div class="row">
<ul uib-pagination total-items="totalItems" ng-model="currentPage" boundary-links="true"
items-per-page="itemsPerPage" class="pagination-sm" ng-show="{{do.showPaging}}"></ul>
</div>
发布于 2017-09-30 05:16:24
ng-show="{{show}}"当没有双向绑定时
ng-show="show"有双向绑定。
https://stackoverflow.com/questions/46497005
复制相似问题