{"action":"created","issue":{"url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/2","repository_url":"https://api.github.com/repos/seiyria/ionic2-pagination","labels_url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/2/comments","events_url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/2/events","html_url":"https://github.com/seiyria/ionic2-pagination/issues/2","id":204519372,"number":2,"title":"How to pass in the data?","user":{"login":"xiaofanwu","id":14242946,"avatar_url":"https://avatars.githubusercontent.com/u/14242946?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaofanwu","html_url":"https://github.com/xiaofanwu","followers_url":"https://api.github.com/users/xiaofanwu/followers","following_url":"https://api.github.com/users/xiaofanwu/following{/other_user}","gists_url":"https://api.github.com/users/xiaofanwu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaofanwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaofanwu/subscriptions","organizations_url":"https://api.github.com/users/xiaofanwu/orgs","repos_url":"https://api.github.com/users/xiaofanwu/repos","events_url":"https://api.github.com/users/xiaofanwu/events{/privacy}","received_events_url":"https://api.github.com/users/xiaofanwu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T08:05:00Z","updated_at":"2017-02-01T14:07:00Z","closed_at":null,"body":"<ionc-pagination\r\n  color=\"light\"\r\n  (clickBeginning)=\"changePage(1)\"\r\n  (clickPrevious)=\"changePage(paginationInfo.page - 1)\"\r\n  (clickNext)=\"changePage(paginationInfo.page + 1)\"\r\n  (clickEnd)=\"changePage(paginationInfo.pageCount)\"\r\n  [pagination]=\"paginationInfo\"></ionc-pagination>\r\n\r\nI defined paginationInfo in my controller. \r\n\r\nWhich I thought of two ways, but none worked.\r\n\r\n1. this.paginationInfo = { page: 1, pageCount: 1...}\r\n2. Or make a class. this.pagniationInfo = new pagination (1, 2, 3, 4);\r\n\r\nIt would be great if you can let me know how one would use this. Thanks!"},"comment":{"url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/comments/276665338","html_url":"https://github.com/seiyria/ionic2-pagination/issues/2#issuecomment-276665338","issue_url":"https://api.github.com/repos/seiyria/ionic2-pagination/issues/2","id":276665338,"user":{"login":"seiyria","id":763609,"avatar_url":"https://avatars.githubusercontent.com/u/763609?v=3","gravatar_id":"","url":"https://api.github.com/users/seiyria","html_url":"https://github.com/seiyria","followers_url":"https://api.github.com/users/seiyria/followers","following_url":"https://api.github.com/users/seiyria/following{/other_user}","gists_url":"https://api.github.com/users/seiyria/gists{/gist_id}","starred_url":"https://api.github.com/users/seiyria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seiyria/subscriptions","organizations_url":"https://api.github.com/users/seiyria/orgs","repos_url":"https://api.github.com/users/seiyria/repos","events_url":"https://api.github.com/users/seiyria/events{/privacy}","received_events_url":"https://api.github.com/users/seiyria/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T14:07:00Z","updated_at":"2017-02-01T14:07:00Z","body":"What you have should be correct. If you can make a plunk, that'd be helpful, because I'm not sure specifically _what_ is going wrong for you. That aside, here are some tidbits that might help you:\r\n\r\n* sample usage [html](https://github.com/seiyria/posys/blob/8e3f740cc9950d3a7e2372f432c00f9929fb813d/src/client/pages/settings/audit/audit.html#L68-L74) [ts](https://github.com/seiyria/posys/blob/8e3f740cc9950d3a7e2372f432c00f9929fb813d/src/client/pages/settings/audit/audit.ts#L49-L57) (declaration above) - this definitely works.\r\n* [pagination is not instantiable](https://github.com/seiyria/ionic2-pagination/blob/master/src/pagination.component.ts#L4-L9) but I provided typings for it. You should just be able to provide these keys and it'll work. "}}
{"actor":{"display_login":"seiyria"}}