{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/969","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/969/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/969/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/969","id":254212058,"number":969,"title":"Nested page-router-outlet loses parent component","user":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T05:09:28Z","updated_at":"2017-08-31T05:09:28Z","closed_at":null,"author_association":"NONE","body":"_From @Burgov on August 30, 2017 19:50_\n\n## Please, provide the details below:\r\n\r\n### Did you verify this is a real problem by searching [Stack Overflow](http://stackoverflow.com/questions/tagged/nativescript) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nyes\r\n\r\n### Tell us about the problem\r\nNested page-router-outlet loses parent component\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid (haven't tested on iOS)\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: (run `tns --version` to fetch it)\r\n31.3\r\n- Cross-platform modules: (check the 'version' attribute in the\r\n`node_modules/tns-core-modules/package.json` file in your project)\r\n3.1.1\r\n- Runtime(s): (look for the `\"tns-android\"` and `\"tns-ios\"` properties in the\r\n`package.json` file of your project)\r\n3.1.1\r\n- Plugin(s): (look for the version number in the `package.json` file of your\r\nproject)\r\ntelerik-ui: ^3.0.4\r\n@angular-*: ~4.2.0\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nI have the following route config:\r\n```\r\nroutes = [\r\n    {\r\n        path: \"\",\r\n        component: BaseComponent,\r\n        canActivate: [ AuthGuard, AccountGuard, SiteGuard ],\r\n        children: [\r\n            { path: \"\", component: HomeComponent },\r\n            { path: \"scan\", component: ScanComponent },\r\n        ]\r\n    }\r\n]\r\n```\r\n\r\nIn AppComponent (root) template I have `<page-router-outlet></page-router-outlet>`.\r\n\r\nIn BaseComponent I enable the RadSideDrawer, so that it's visible in all child components.\r\n\r\nThis works fine, as long as I include `<router-outlet></router-outlet>` in the BaseComponent template. However, if I do that, I don't receive any page events, and thus can not execute any actions when a page is loaded.\r\n\r\nIf I put `<page-router-outlet></page-router-outlet>` in the BaseComponent template, that part works, the events are emitted, but as soon as I leave the first page, the RadSideDrawer is gone!\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\nSee above\r\n\n\n_Copied from original issue: NativeScript/NativeScript#4779_"}}
{"actor":{"display_login":"tsonevn"}}