Paginator for AngularJS applications