{"action":"created","issue":{"url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/2","labels_url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/2/comments","events_url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/2/events","html_url":"https://github.com/mdoleh/WatchYourBAC/issues/2","id":129156199,"number":2,"title":"Paginate / Dynamically Load Beer Results","user":{"login":"mdoleh","id":5346747,"avatar_url":"https://avatars.githubusercontent.com/u/5346747?v=3","gravatar_id":"","url":"https://api.github.com/users/mdoleh","html_url":"https://github.com/mdoleh","followers_url":"https://api.github.com/users/mdoleh/followers","following_url":"https://api.github.com/users/mdoleh/following{/other_user}","gists_url":"https://api.github.com/users/mdoleh/gists{/gist_id}","starred_url":"https://api.github.com/users/mdoleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdoleh/subscriptions","organizations_url":"https://api.github.com/users/mdoleh/orgs","repos_url":"https://api.github.com/users/mdoleh/repos","events_url":"https://api.github.com/users/mdoleh/events{/privacy}","received_events_url":"https://api.github.com/users/mdoleh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mdoleh/WatchYourBAC/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mdoleh","id":5346747,"avatar_url":"https://avatars.githubusercontent.com/u/5346747?v=3","gravatar_id":"","url":"https://api.github.com/users/mdoleh","html_url":"https://github.com/mdoleh","followers_url":"https://api.github.com/users/mdoleh/followers","following_url":"https://api.github.com/users/mdoleh/following{/other_user}","gists_url":"https://api.github.com/users/mdoleh/gists{/gist_id}","starred_url":"https://api.github.com/users/mdoleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdoleh/subscriptions","organizations_url":"https://api.github.com/users/mdoleh/orgs","repos_url":"https://api.github.com/users/mdoleh/repos","events_url":"https://api.github.com/users/mdoleh/events{/privacy}","received_events_url":"https://api.github.com/users/mdoleh/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-27T14:13:51Z","updated_at":"2016-01-28T05:21:51Z","closed_at":null,"body":"As a user I would like to see more results on the page either by scrolling down and having more results load in, or by clicking a next page button/link on the page.\r\n\r\nI believe the API paginates the results already. The easiest way to deal with that is to also paginate the page. Just have the next page button call the API (as shown below) or call it as you scroll closer to the bottom.\r\n\r\nhttp://api.brewerydb.com/v2/beers?name=bu*&p=3\r\n\r\nWhere p is the page number you are looking for.\r\n\r\nScrolling is detectable like so (we'll need to Angular-ize this but the concept is the same):\r\n\r\nwindow.onscroll = function(ev) {\r\n    if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {\r\n        // you're at the bottom of the page\r\n    }\r\n};"},"comment":{"url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/comments/175986381","html_url":"https://github.com/mdoleh/WatchYourBAC/issues/2#issuecomment-175986381","issue_url":"https://api.github.com/repos/mdoleh/WatchYourBAC/issues/2","id":175986381,"user":{"login":"mdoleh","id":5346747,"avatar_url":"https://avatars.githubusercontent.com/u/5346747?v=3","gravatar_id":"","url":"https://api.github.com/users/mdoleh","html_url":"https://github.com/mdoleh","followers_url":"https://api.github.com/users/mdoleh/followers","following_url":"https://api.github.com/users/mdoleh/following{/other_user}","gists_url":"https://api.github.com/users/mdoleh/gists{/gist_id}","starred_url":"https://api.github.com/users/mdoleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdoleh/subscriptions","organizations_url":"https://api.github.com/users/mdoleh/orgs","repos_url":"https://api.github.com/users/mdoleh/repos","events_url":"https://api.github.com/users/mdoleh/events{/privacy}","received_events_url":"https://api.github.com/users/mdoleh/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T05:21:51Z","updated_at":"2016-01-28T05:21:51Z","body":"Apparently Angular 2.0 doesn't yet support infinite scrolling due to a lack of a method for listening for the onscroll event. Will instead be using paginating buttons until scroll listening is supported. More info here: https://github.com/angular/angular/issues/1693"}}