{"action":"created","issue":{"url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/28","repository_url":"https://api.github.com/repos/orizens/angular2-infinite-scroll","labels_url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/28/comments","events_url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/28/events","html_url":"https://github.com/orizens/angular2-infinite-scroll/issues/28","id":160645329,"number":28,"title":"Cannot read property 'query' of null","user":{"login":"Hongbo-Miao","id":3375461,"avatar_url":"https://avatars.githubusercontent.com/u/3375461?v=3","gravatar_id":"","url":"https://api.github.com/users/Hongbo-Miao","html_url":"https://github.com/Hongbo-Miao","followers_url":"https://api.github.com/users/Hongbo-Miao/followers","following_url":"https://api.github.com/users/Hongbo-Miao/following{/other_user}","gists_url":"https://api.github.com/users/Hongbo-Miao/gists{/gist_id}","starred_url":"https://api.github.com/users/Hongbo-Miao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hongbo-Miao/subscriptions","organizations_url":"https://api.github.com/users/Hongbo-Miao/orgs","repos_url":"https://api.github.com/users/Hongbo-Miao/repos","events_url":"https://api.github.com/users/Hongbo-Miao/events{/privacy}","received_events_url":"https://api.github.com/users/Hongbo-Miao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-06-16T12:04:37Z","updated_at":"2016-06-16T16:15:37Z","closed_at":null,"body":"I got this error after updating from `0.1.2` to `0.1.3`.\r\n\r\n> EXCEPTION: TypeError: Cannot read property 'query' of null\r\n\r\nThe code is quite simple:\r\n```ts\r\nimport { Component } from '@angular/core';\r\nimport { bootstrap } from '@angular/platform-browser-dynamic';\r\nimport { InfiniteScroll } from 'angular2-infinite-scroll';\r\n\r\n@Component({\r\n  selector: 'app',\r\n  directives: [InfiniteScroll],\r\n  styles: [`\r\n    .search-results {\r\n      height: 20rem;\r\n      overflow: scroll;\r\n    }\r\n  `],\r\n  template: `\r\n    Hello InfiniteScroll!\r\n    <div class=\"search-results\"\r\n         infinite-scroll\r\n         [infiniteScrollDistance]=\"2\"\r\n         [infiniteScrollThrottle]=\"500\"\r\n         (scrolled)=\"onScroll()\">\r\n      <p>1</p>\r\n      <p>2</p>\r\n      <p>3</p>\r\n    </div>\r\n  `\r\n})\r\nclass App {\r\n  onScroll () {\r\n    console.log('scrolled!!')\r\n  }\r\n}\r\nbootstrap(App);\r\n```\r\n\r\nIt happens after I adding this part (Without this part, no error):\r\n```\r\n<div class=\"search-results\"\r\n    infinite-scroll\r\n    [infiniteScrollDistance]=\"2\"\r\n    [infiniteScrollThrottle]=\"500\"\r\n    (scrolled)=\"onScroll()\">\r\n  <p>1</p>\r\n  <p>2</p>\r\n  <p>3</p>\r\n</div>\r\n```"},"comment":{"url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/comments/226535602","html_url":"https://github.com/orizens/angular2-infinite-scroll/issues/28#issuecomment-226535602","issue_url":"https://api.github.com/repos/orizens/angular2-infinite-scroll/issues/28","id":226535602,"user":{"login":"tallkid24","id":7934680,"avatar_url":"https://avatars.githubusercontent.com/u/7934680?v=3","gravatar_id":"","url":"https://api.github.com/users/tallkid24","html_url":"https://github.com/tallkid24","followers_url":"https://api.github.com/users/tallkid24/followers","following_url":"https://api.github.com/users/tallkid24/following{/other_user}","gists_url":"https://api.github.com/users/tallkid24/gists{/gist_id}","starred_url":"https://api.github.com/users/tallkid24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tallkid24/subscriptions","organizations_url":"https://api.github.com/users/tallkid24/orgs","repos_url":"https://api.github.com/users/tallkid24/repos","events_url":"https://api.github.com/users/tallkid24/events{/privacy}","received_events_url":"https://api.github.com/users/tallkid24/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T16:15:37Z","updated_at":"2016-06-16T16:15:37Z","body":"@orizens I think he is right though. I brought over the scroller files to my local, and removed the | any and it worked without any errors.."}}
{"actor":{"display_login":"tallkid24"}}