{"action":"created","issue":{"url":"https://api.github.com/repos/angular/router/issues/143","labels_url":"https://api.github.com/repos/angular/router/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/angular/router/issues/143/comments","events_url":"https://api.github.com/repos/angular/router/issues/143/events","html_url":"https://github.com/angular/router/issues/143","id":59417222,"number":143,"title":"Don't change parent viewports on child route change","user":{"login":"dpogue","id":241708,"avatar_url":"https://avatars.githubusercontent.com/u/241708?v=3","gravatar_id":"","url":"https://api.github.com/users/dpogue","html_url":"https://github.com/dpogue","followers_url":"https://api.github.com/users/dpogue/followers","following_url":"https://api.github.com/users/dpogue/following{/other_user}","gists_url":"https://api.github.com/users/dpogue/gists{/gist_id}","starred_url":"https://api.github.com/users/dpogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpogue/subscriptions","organizations_url":"https://api.github.com/users/dpogue/orgs","repos_url":"https://api.github.com/users/dpogue/repos","events_url":"https://api.github.com/users/dpogue/events{/privacy}","received_events_url":"https://api.github.com/users/dpogue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-01T21:01:25Z","updated_at":"2015-03-13T11:33:34Z","closed_at":null,"body":"With the following scenario:\r\n\r\n```javascript\r\nangular.module('landing', ['ngNewRouter'])\r\n.run(function($router) {\r\n    $router.config([{\r\n        { path: '/landing', component: 'landing' }\r\n    }]);\r\n})\r\n.controller('LandingController', function($router) {\r\n    // $router is the child router in this instance\r\n    $router.config([{\r\n        { path: '/signup', component: 'signup' }\r\n    }]);\r\n});\r\n```\r\n\r\n```html\r\n<div ng-viewport> <!-- landing -->\r\n    <h1>Landing Page</h1>\r\n    <div ng-viewport> <!-- signup --> </div>\r\n</div>\r\n```\r\n\r\nWhen I go from `/landing` to `/landing/signup`, the outer viewport is destroyed and re-created even though it didn't change. Ideally only the inner viewport would be affected.\r\n\r\nIn particular, this causes problems with animations because the outer viewport animating leave/enter blocks animations on its child elements, including the child viewport."},"comment":{"url":"https://api.github.com/repos/angular/router/issues/comments/78929293","html_url":"https://github.com/angular/router/issues/143#issuecomment-78929293","issue_url":"https://api.github.com/repos/angular/router/issues/143","id":78929293,"user":{"login":"jvandemo","id":1859381,"avatar_url":"https://avatars.githubusercontent.com/u/1859381?v=3","gravatar_id":"","url":"https://api.github.com/users/jvandemo","html_url":"https://github.com/jvandemo","followers_url":"https://api.github.com/users/jvandemo/followers","following_url":"https://api.github.com/users/jvandemo/following{/other_user}","gists_url":"https://api.github.com/users/jvandemo/gists{/gist_id}","starred_url":"https://api.github.com/users/jvandemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvandemo/subscriptions","organizations_url":"https://api.github.com/users/jvandemo/orgs","repos_url":"https://api.github.com/users/jvandemo/repos","events_url":"https://api.github.com/users/jvandemo/events{/privacy}","received_events_url":"https://api.github.com/users/jvandemo/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T11:33:34Z","updated_at":"2015-03-13T11:33:34Z","body":"In that case I'm not sure if that is intended behavior.\r\n\r\nWould be great to hear @btford's thoughts on this.\r\n\r\n "}}