{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/106","repository_url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng","labels_url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/106/comments","events_url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/106/events","html_url":"https://github.com/NativeScript/template-drawer-navigation-ng/issues/106","id":324816398,"number":106,"title":"Items in sidedrawer don't get highlighted during navigation","user":{"login":"manikjain","id":21245503,"avatar_url":"https://avatars1.githubusercontent.com/u/21245503?v=4","gravatar_id":"","url":"https://api.github.com/users/manikjain","html_url":"https://github.com/manikjain","followers_url":"https://api.github.com/users/manikjain/followers","following_url":"https://api.github.com/users/manikjain/following{/other_user}","gists_url":"https://api.github.com/users/manikjain/gists{/gist_id}","starred_url":"https://api.github.com/users/manikjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikjain/subscriptions","organizations_url":"https://api.github.com/users/manikjain/orgs","repos_url":"https://api.github.com/users/manikjain/repos","events_url":"https://api.github.com/users/manikjain/events{/privacy}","received_events_url":"https://api.github.com/users/manikjain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T07:32:35Z","updated_at":"2018-05-21T07:39:56Z","closed_at":"2018-05-21T07:39:56Z","author_association":"NONE","body":"PR here: https://github.com/NativeScript/template-drawer-navigation-ng/pull/105\r\n\r\nWhile navigating to different places in the side drawer, the items in the side drawer don't get highlighted and only the Home component remains highlighted.\r\n\r\nThis is because after `this._selectedPage` is initialised in `ngOnInit` method, it is never reset after a user taps on a sidedrawer item.\r\n\r\nTest:\r\n\r\nI navigated to the search component as seen below:\r\n\r\n![image](https://user-images.githubusercontent.com/21245503/40295233-44b3e3b4-5cf6-11e8-8649-ba9301125cbe.png)\r\n\r\nHowever, the home component still shows highlighted:\r\n\r\n![image](https://user-images.githubusercontent.com/21245503/40295290-67451ef2-5cf6-11e8-9113-32bf2c6edd46.png)\r\n\r\nAfter resetting _selectedPage in the `onNavItemTap` method, the items in side drawer get highlighted:\r\n\r\n![image](https://user-images.githubusercontent.com/21245503/40295522-33635ee0-5cf7-11e8-87f2-2420645cd3a2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/comments/390578039","html_url":"https://github.com/NativeScript/template-drawer-navigation-ng/issues/106#issuecomment-390578039","issue_url":"https://api.github.com/repos/NativeScript/template-drawer-navigation-ng/issues/106","id":390578039,"user":{"login":"manoldonev","id":2650247,"avatar_url":"https://avatars1.githubusercontent.com/u/2650247?v=4","gravatar_id":"","url":"https://api.github.com/users/manoldonev","html_url":"https://github.com/manoldonev","followers_url":"https://api.github.com/users/manoldonev/followers","following_url":"https://api.github.com/users/manoldonev/following{/other_user}","gists_url":"https://api.github.com/users/manoldonev/gists{/gist_id}","starred_url":"https://api.github.com/users/manoldonev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manoldonev/subscriptions","organizations_url":"https://api.github.com/users/manoldonev/orgs","repos_url":"https://api.github.com/users/manoldonev/repos","events_url":"https://api.github.com/users/manoldonev/events{/privacy}","received_events_url":"https://api.github.com/users/manoldonev/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T07:39:56Z","updated_at":"2018-05-21T07:39:56Z","author_association":"CONTRIBUTOR","body":"Already fixed with #102 "}}
{"actor":{"display_login":"manoldonev"}}