wonderfan / javascript

Explore the power of HTML,CSS and JavaScript
1 stars 0 forks source link

如何在angular中实现分页? #96

Closed wonderfan closed 8 years ago

wonderfan commented 8 years ago

代码仓库:https://github.com/michaelbromley/angularUtils-pagination

基本原理:

  1. 唯一的依赖是angularjs;
  2. 使用module方法创建dirpagination module对象;
  3. 添加directive,filter,service,provider;
  4. 调用module上的run方法;
wonderfan commented 8 years ago

可以使用table组件,从而省去了分页:https://github.com/simplicitylabs/si-table

wonderfan commented 8 years ago

table组件的风格不同:https://github.com/samu/angular-table

wonderfan commented 8 years ago

从jQuery上一脉相传下来的datatable:https://github.com/FerencKun/angular-datatable