{"action":"created","issue":{"url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/124","labels_url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/124/comments","events_url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/124/events","html_url":"https://github.com/michaelbromley/angularUtils/issues/124","id":60018379,"number":124,"title":"dirPaginate displaying 3 items and going on next items one by one","user":{"login":"casertap","id":284394,"avatar_url":"https://avatars.githubusercontent.com/u/284394?v=3","gravatar_id":"","url":"https://api.github.com/users/casertap","html_url":"https://github.com/casertap","followers_url":"https://api.github.com/users/casertap/followers","following_url":"https://api.github.com/users/casertap/following{/other_user}","gists_url":"https://api.github.com/users/casertap/gists{/gist_id}","starred_url":"https://api.github.com/users/casertap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casertap/subscriptions","organizations_url":"https://api.github.com/users/casertap/orgs","repos_url":"https://api.github.com/users/casertap/repos","events_url":"https://api.github.com/users/casertap/events{/privacy}","received_events_url":"https://api.github.com/users/casertap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T21:23:57Z","updated_at":"2015-03-06T08:44:46Z","closed_at":null,"body":"Hi, I'm wondering if it is possible to use dirPaginate to display 3 elements: A, B, C,\r\nand on click on next I could have B, C ,D, etc... ?"},"comment":{"url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/comments/77524966","html_url":"https://github.com/michaelbromley/angularUtils/issues/124#issuecomment-77524966","issue_url":"https://api.github.com/repos/michaelbromley/angularUtils/issues/124","id":77524966,"user":{"login":"michaelbromley","id":6275952,"avatar_url":"https://avatars.githubusercontent.com/u/6275952?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelbromley","html_url":"https://github.com/michaelbromley","followers_url":"https://api.github.com/users/michaelbromley/followers","following_url":"https://api.github.com/users/michaelbromley/following{/other_user}","gists_url":"https://api.github.com/users/michaelbromley/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbromley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbromley/subscriptions","organizations_url":"https://api.github.com/users/michaelbromley/orgs","repos_url":"https://api.github.com/users/michaelbromley/repos","events_url":"https://api.github.com/users/michaelbromley/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbromley/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T08:44:46Z","updated_at":"2015-03-06T08:44:46Z","body":"With an in-memory collection, there is no way I can think of to do this. However, here are a couple of suggestions that might work:\r\n\r\n- Create your collection in a way that repeats the items, for example:\r\n\r\n```JavaScript\r\n$scope.myCollection = ['A', 'B', 'C', 'B', 'C', D', 'C', 'D' 'E'];\r\n```\r\n\r\nThen when you paginate it with `itemsPerPage: 3`, you should get the result you want. You'll need to figure out a smart way to convert the plain list A, B, C, D... into the format above.\r\n\r\n- If you use server-side paging, you could write the server code to return the results you want, i.e. page 1 returns A, B, C; page 2 returns B, C, D; etc."}}