We have the [paginator](https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/camunda-webapp/webapp/src/main/webapp/app/common/directives/paginator.js) component that takes care of pagination in our applications. 

Could you update your pull request to use that component, too?