Ruby on rails 带轨道链轮的角度utils分页
角度utils分页取决于分页控件的Ruby on rails 带轨道链轮的角度utils分页,ruby-on-rails,angularjs,pagination,sprockets,Ruby On Rails,Angularjs,Pagination,Sprockets,角度utils分页取决于分页控件的dirPagination.tpl.html。我使用bower将其安装在bower_组件中。所以树结构是 vendor └── assets ├── bower_components ├── angular-utils-pagination ├── README.md ├── bower.json ├── dirPagination.js └── dirPagination.
dirPagination.tpl.html
。我使用bower将其安装在bower_组件中。所以树结构是
vendor
└── assets
├── bower_components
├── angular-utils-pagination
├── README.md
├── bower.json
├── dirPagination.js
└── dirPagination.tpl.html
config/application.rb
config.assets.paths << Rails.root.join('vendor','assets','bower_components')
config.assets.precompile << %r(.*.(?:eot|svg|ttf|woff|html)$)
config.assets.path我使用以下指令
这对我来说很好
<dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)" **template-url="Templates\dirPagination.tpl.html"**>