Pagination directive for AngularJS build using Foundation