{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/11809","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/11809/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/11809/comments","events_url":"https://api.github.com/repos/angular/angular/issues/11809/events","html_url":"https://github.com/angular/angular/issues/11809","id":178469305,"number":11809,"title":"Angular router / auxiliary routes working once, bug (?) after","user":{"login":"maxime1992","id":4950209,"avatar_url":"https://avatars.githubusercontent.com/u/4950209?v=3","gravatar_id":"","url":"https://api.github.com/users/maxime1992","html_url":"https://github.com/maxime1992","followers_url":"https://api.github.com/users/maxime1992/followers","following_url":"https://api.github.com/users/maxime1992/following{/other_user}","gists_url":"https://api.github.com/users/maxime1992/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime1992/subscriptions","organizations_url":"https://api.github.com/users/maxime1992/orgs","repos_url":"https://api.github.com/users/maxime1992/repos","events_url":"https://api.github.com/users/maxime1992/events{/privacy}","received_events_url":"https://api.github.com/users/maxime1992/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04"},{"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc"},{"url":"https://api.github.com/repos/angular/angular/labels/state:%20Need%20repro","name":"state: Need repro","color":"e11d21"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE"}],"state":"closed","locked":false,"assignee":{"login":"vsavkin","id":35996,"avatar_url":"https://avatars.githubusercontent.com/u/35996?v=3","gravatar_id":"","url":"https://api.github.com/users/vsavkin","html_url":"https://github.com/vsavkin","followers_url":"https://api.github.com/users/vsavkin/followers","following_url":"https://api.github.com/users/vsavkin/following{/other_user}","gists_url":"https://api.github.com/users/vsavkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vsavkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsavkin/subscriptions","organizations_url":"https://api.github.com/users/vsavkin/orgs","repos_url":"https://api.github.com/users/vsavkin/repos","events_url":"https://api.github.com/users/vsavkin/events{/privacy}","received_events_url":"https://api.github.com/users/vsavkin/received_events","type":"User","site_admin":false},"assignees":[{"login":"vsavkin","id":35996,"avatar_url":"https://avatars.githubusercontent.com/u/35996?v=3","gravatar_id":"","url":"https://api.github.com/users/vsavkin","html_url":"https://github.com/vsavkin","followers_url":"https://api.github.com/users/vsavkin/followers","following_url":"https://api.github.com/users/vsavkin/following{/other_user}","gists_url":"https://api.github.com/users/vsavkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vsavkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsavkin/subscriptions","organizations_url":"https://api.github.com/users/vsavkin/orgs","repos_url":"https://api.github.com/users/vsavkin/repos","events_url":"https://api.github.com/users/vsavkin/events{/privacy}","received_events_url":"https://api.github.com/users/vsavkin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-09-21T21:39:23Z","updated_at":"2016-10-26T21:14:41Z","closed_at":"2016-10-26T21:14:41Z","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior** \r\n<!-- Describe how the bug manifests. -->\r\n```html\r\n<div>\r\n  <a [routerLink]=\"['emails']\">Emails</a>\r\n  <a [routerLink]=\"['contacts']\">Contacts</a>\r\n  <a [routerLink]=\"[{outlets: {aux: ['auxiliary']}}]\">Open an auxiliary route</a>\r\n</div>\r\n\r\n<router-outlet></router-outlet>\r\n<router-outlet name=\"aux\"></router-outlet>\r\n```\r\nSo far, it's nearly fine.\r\n\r\n- `/emails` is diplaying fine\r\n- `/contacts` is diplaying fine\r\n- `/emails(aux:auxiliary)` is diplaying fine **at loading**\r\n- `/contacts(aux:auxiliary)` is diplaying fine **at loading**\r\n\r\nWhen the auxiliary is in URL, it's ok the first time we reach it.  \r\nBut then, if I click on `<a [routerLink]=\"['emails']\">Emails</a>`, my aux outlet is not displayed anymore even tho the URL is still http://localhost:4200/emails(aux:auxiliary).\r\n\r\nSo my question is, how can we change the primary URL, without changing auxiliary routes ? (if no auxiliary, just go to new URL, if auxiliary, go to URL + auxiliary).\r\n\r\nI tried :\r\n\r\n```html\r\n<a [routerLink]=\"['emails', {outlets: {aux: ['/']}}]\">Emails</a>\r\n<a [routerLink]=\"['contacts', {outlets: {aux: ['/']}}]\">Contacts</a>\r\n```\r\nand also\r\n```html\r\n<a [routerLink]=\"['emails', {outlets: {aux: ['./']}}]\">Emails</a>\r\n<a [routerLink]=\"['contacts', {outlets: {aux: ['./']}}]\">Contacts</a>\r\n```\r\nBut it's not working either.\r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nStay on current primary route without changing auxiliary.\r\n\r\n**Reproduction of the problem**\r\n<!-- If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5). -->\r\n```bash\r\ngit clone https://github.com/maxime1992/angular2-nrgx-demo.git\r\ngit checkout auxiliary-route\r\nnpm i\r\nng serve\r\n```\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nUbuntu 16.04\r\nNode 6.5.0\r\n\r\n* **Angular version:** 2.0.0-rc.X\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\nangular-cli: local (v1.0.0-beta.14, branch: master)\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \r\n<!-- All browsers where this could be reproduced -->\r\n Chromium 52.0.2743.116\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\n Typescript\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\n6.5.0"}}
{"actor":{"display_login":"vsavkin"}}