{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/4728","labels_url":"https://api.github.com/repos/angular/angular/issues/4728/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/4728/comments","events_url":"https://api.github.com/repos/angular/angular/issues/4728/events","html_url":"https://github.com/angular/angular/issues/4728","id":111390612,"number":4728,"title":"Issue: double click on nested route break router outlet","user":{"login":"svrcekmichal","id":9148702,"avatar_url":"https://avatars.githubusercontent.com/u/9148702?v=3","gravatar_id":"","url":"https://api.github.com/users/svrcekmichal","html_url":"https://github.com/svrcekmichal","followers_url":"https://api.github.com/users/svrcekmichal/followers","following_url":"https://api.github.com/users/svrcekmichal/following{/other_user}","gists_url":"https://api.github.com/users/svrcekmichal/gists{/gist_id}","starred_url":"https://api.github.com/users/svrcekmichal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svrcekmichal/subscriptions","organizations_url":"https://api.github.com/users/svrcekmichal/orgs","repos_url":"https://api.github.com/users/svrcekmichal/repos","events_url":"https://api.github.com/users/svrcekmichal/events{/privacy}","received_events_url":"https://api.github.com/users/svrcekmichal/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/effort2:%20medium%20(day)","name":"effort2: medium (day)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P2:%20required","name":"P2: required","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-14T12:47:05Z","updated_at":"2015-11-24T19:29:19Z","closed_at":null,"body":"Firstly, soory for no plunker, I wasn't able to run ng2 there, but here's code\r\n\r\n```\r\nimport {Component, provide, bootstrap} from 'angular2/angular2';\r\nimport {\r\n  RouteConfig,\r\n  ROUTER_DIRECTIVES,\r\n  ROUTER_PROVIDERS,\r\n  ROUTER_PRIMARY_COMPONENT\r\n} from 'angular2/router';\r\n\r\n\r\n@Component({\r\n  template:`Route11NODE`\r\n})\r\nexport class Route11Node {}\r\n\r\n@Component({\r\n  template: 'Route12NODE'\r\n})\r\nexport class Route12 {}\r\n\r\n\r\n\r\n\r\n@Component({\r\n  template:`Route1NODE`\r\n})\r\nexport class Route1Node {}\r\n\r\n@Component({\r\n  directives: [ROUTER_DIRECTIVES],\r\n  template: 'Route1 => <router-outlet></router-outlet>'\r\n})\r\n@RouteConfig([\r\n  { path: '/route11', component: Route11Node, as: 'Route11Node' },\r\n  { path: '/route12', component: Route12, as: 'Route12' }\r\n])\r\nexport class Route1 {\r\n\r\n}\r\n\r\n\r\n\r\n\r\n@Component({\r\n  selector: 'app',\r\n  viewProviders: [],\r\n  directives: [ROUTER_DIRECTIVES],\r\n  template: `\r\n  <section class=\"sample-app-content\">\r\n    <nav>\r\n      <a [router-link]=\"['/Route1Node']\">Route1</a><br>\r\n      &nbsp;&nbsp;<a [router-link]=\"['/Route1/Route11Node']\">Route11</a><br>\r\n      &nbsp;&nbsp;<a [router-link]=\"['/Route1/Route12']\">Route12</a><br>\r\n    </nav>\r\n  <h2><router-outlet></router-outlet></h2>\r\n</section>\r\n`\r\n})\r\n@RouteConfig([\r\n  { path: '/route1', component: Route1Node, as: 'Route1Node' },\r\n  { path: '/route1/...', component: Route1, as: 'Route1' }\r\n])\r\nclass App {}\r\n\r\nbootstrap(App, [\r\n  ROUTER_PROVIDERS,\r\n  provide(ROUTER_PRIMARY_COMPONENT,{useValue:App})\r\n]);\r\n```\r\n\r\nafter recompile you cas see this in browser:\r\n\r\n```\r\nRoute1\r\n  Route11\r\n  Route12\r\n```\r\n\r\nNow to simulate problem:\r\n1. double click on `Route11`\r\n2. click on `Route1`\r\n3. click on `Route11`\r\n\r\nand you will get: `Cannot reuse an outlet that does not contain a component.`. If you click on `Route12` and then back to `Route11`, everything will work, but if you click to `Route1` and then `Route11` everytime you will get this error\r\n\r\nUsed @mgechev 's angular2-seed build with `alpha42`\r\nProblem simulated in chrome, ie10, firefox, opera"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/159380751","html_url":"https://github.com/angular/angular/issues/4728#issuecomment-159380751","issue_url":"https://api.github.com/repos/angular/angular/issues/4728","id":159380751,"user":{"login":"rolandjitsu","id":1479737,"avatar_url":"https://avatars.githubusercontent.com/u/1479737?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandjitsu","html_url":"https://github.com/rolandjitsu","followers_url":"https://api.github.com/users/rolandjitsu/followers","following_url":"https://api.github.com/users/rolandjitsu/following{/other_user}","gists_url":"https://api.github.com/users/rolandjitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandjitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandjitsu/subscriptions","organizations_url":"https://api.github.com/users/rolandjitsu/orgs","repos_url":"https://api.github.com/users/rolandjitsu/repos","events_url":"https://api.github.com/users/rolandjitsu/events{/privacy}","received_events_url":"https://api.github.com/users/rolandjitsu/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T19:29:19Z","updated_at":"2015-11-24T19:29:19Z","body":"I have an issue with the same message `Cannot reuse an outlet that does not contain a component.` but it occurs because of different reasons."}}