rosa-build/app/views/shared/_angularjs_paginate.html.slim

15 lines
530 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/ Add to controller something like:
/ $scope.goToPage = (number) ->
/ $location.search('page', number)
pagination[ boundary-links = 'true'
total-items = total_items
ng-model = page
previous-text = "" next-text = ""
first-text = "«" last-text = "»"
items-per-page = per_page
max-size = 5
rotate = 'false'
ng-show = "#{total_items} > #{per_page}"
ng-change = select_page ]