{"action":"created","issue":{"url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/168","repository_url":"https://api.github.com/repos/mharris717/ember-cli-pagination","labels_url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/168/comments","events_url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/168/events","html_url":"https://github.com/mharris717/ember-cli-pagination/issues/168","id":134364276,"number":168,"title":"Not getting any pagination at all","user":{"login":"Jordan4jc","id":1076459,"avatar_url":"https://avatars.githubusercontent.com/u/1076459?v=3","gravatar_id":"","url":"https://api.github.com/users/Jordan4jc","html_url":"https://github.com/Jordan4jc","followers_url":"https://api.github.com/users/Jordan4jc/followers","following_url":"https://api.github.com/users/Jordan4jc/following{/other_user}","gists_url":"https://api.github.com/users/Jordan4jc/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan4jc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan4jc/subscriptions","organizations_url":"https://api.github.com/users/Jordan4jc/orgs","repos_url":"https://api.github.com/users/Jordan4jc/repos","events_url":"https://api.github.com/users/Jordan4jc/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan4jc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T18:43:43Z","updated_at":"2016-02-17T20:12:07Z","closed_at":"2016-02-17T20:12:06Z","body":"I'm attempting to use the infinite scroll pagination with content loaded locally. Here is the way I have it set up currently\r\n\r\n```\r\nimport Ember from 'ember';\r\nimport computedFilterByQuery from 'ember-cli-filter-by-query';\r\nimport pagedArray from 'ember-cli-pagination/computed/paged-array';\r\n\r\nexport default Ember.Controller.extend({\r\n  pagedContent: pagedArray('content', {infinite: \"unpaged\"},{perPage: 5}),\r\n\r\n  query: '',\r\n  filteredItems: computedFilterByQuery('pagedContent', 'item_name', 'query'),\r\n  sort: ['item_name'],\r\n  sortedItems: Ember.computed.sort('filteredItems','sort'),\r\n \r\n  actions: {\r\n    updateQuery(query) {\r\n      this.set('query',query);\r\n    },\r\n    loadNext: function() {\r\n      this.get('pagedContent').loadNextPage();\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nI'm using a search/filter addon to allow the user to enter a 'search' term to filter items down to just items that match that query (does not use query params in the url) that is the `filteredItems` property, which was using `model` but now I want to use whatever items are paginated into view with the pagination addon so I switched to `pagedContent`, in `pagedContent` I also tried using `model` instead of `content` (not really clear where `content` is supposed to be coming from here) the rest are the basic actions, one to update the query so the `computedFilterByQuery` updates items and the other is the `loadNext` action defined in the docs for the pagination addon.\r\n\r\nIn the template I'm using an `each` looping over `sortedItems` since I want to make sure to still get my sorted items based on any query that may be entered.\r\n\r\nI'm seeing all items being rendered though as apposed to just the first 5, am I missing something here?"},"comment":{"url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/comments/185382253","html_url":"https://github.com/mharris717/ember-cli-pagination/issues/168#issuecomment-185382253","issue_url":"https://api.github.com/repos/mharris717/ember-cli-pagination/issues/168","id":185382253,"user":{"login":"Jordan4jc","id":1076459,"avatar_url":"https://avatars.githubusercontent.com/u/1076459?v=3","gravatar_id":"","url":"https://api.github.com/users/Jordan4jc","html_url":"https://github.com/Jordan4jc","followers_url":"https://api.github.com/users/Jordan4jc/followers","following_url":"https://api.github.com/users/Jordan4jc/following{/other_user}","gists_url":"https://api.github.com/users/Jordan4jc/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan4jc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan4jc/subscriptions","organizations_url":"https://api.github.com/users/Jordan4jc/orgs","repos_url":"https://api.github.com/users/Jordan4jc/repos","events_url":"https://api.github.com/users/Jordan4jc/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan4jc/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T20:12:06Z","updated_at":"2016-02-17T20:12:06Z","body":"Was able to get the infinite scrolling working with custom scroll/touchmove listeners"}}