A paging directory for angularjs