[ angularJS ] pagination using angular-paginate-anything

<!-- elements such as an ng-table reading from someVariable -->

someVariable variable will be used in the template.

background request

GET /stuff HTTP/1.1
Range-Unit: items
Range: 0-24

ref : https://github.com/begriffs/angular-paginate-anything


Clean pagination

This usually used with clean_pagination backend.



class ApplicationController < ActionController::Base
include CleanPagination

# Using activemodel
def index

paginate Bla.count, 100 do |limit, offset|
render json: Bla.limit(limit).offset(offset)



ref : https://github.com/begriffs/clean_pagination


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s