{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1022","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1022/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1022/events","html_url":"https://github.com/nuxt/nuxt.js/pull/1022","id":240229158,"number":1022,"title":"Configurable 'key' attribute/property for transitions","user":{"login":"silverbackdan","id":25174262,"avatar_url":"https://avatars3.githubusercontent.com/u/25174262?v=3","gravatar_id":"","url":"https://api.github.com/users/silverbackdan","html_url":"https://github.com/silverbackdan","followers_url":"https://api.github.com/users/silverbackdan/followers","following_url":"https://api.github.com/users/silverbackdan/following{/other_user}","gists_url":"https://api.github.com/users/silverbackdan/gists{/gist_id}","starred_url":"https://api.github.com/users/silverbackdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverbackdan/subscriptions","organizations_url":"https://api.github.com/users/silverbackdan/orgs","repos_url":"https://api.github.com/users/silverbackdan/repos","events_url":"https://api.github.com/users/silverbackdan/events{/privacy}","received_events_url":"https://api.github.com/users/silverbackdan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-03T17:20:20Z","updated_at":"2017-07-03T19:30:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nuxt/nuxt.js/pulls/1022","html_url":"https://github.com/nuxt/nuxt.js/pull/1022","diff_url":"https://github.com/nuxt/nuxt.js/pull/1022.diff","patch_url":"https://github.com/nuxt/nuxt.js/pull/1022.patch"},"body":"The vue-router component can have a 'key' property which means it's easier to configure transitions between routes with slugs.\r\n\r\nWith this change in a layout template you can use\r\n```html\r\n<nuxt :routerViewKey=\"routerViewKey\" />\r\n```\r\nAnd the following for example\r\n```js\r\n    computed: {\r\n      routerViewKey () {\r\n        if (this.$route.name === 'service') {\r\n          return this.$route.name\r\n        } else {\r\n          return this.$route.fullPath\r\n        }\r\n      }\r\n    }\r\n```\r\nThis would implement the functionality that @myst729 mentioned here https://github.com/vuejs/vue-router/issues/474 for vue-router - some routes can just switch, but some you may want to transition as though it's a complete new page to an end-user\r\n\r\nThis is a possible resolution to issue raised here https://github.com/nuxt/nuxt.js/issues/1021"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/312719357","html_url":"https://github.com/nuxt/nuxt.js/pull/1022#issuecomment-312719357","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1022","id":312719357,"user":{"login":"pi0","id":5158436,"avatar_url":"https://avatars3.githubusercontent.com/u/5158436?v=3","gravatar_id":"","url":"https://api.github.com/users/pi0","html_url":"https://github.com/pi0","followers_url":"https://api.github.com/users/pi0/followers","following_url":"https://api.github.com/users/pi0/following{/other_user}","gists_url":"https://api.github.com/users/pi0/gists{/gist_id}","starred_url":"https://api.github.com/users/pi0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi0/subscriptions","organizations_url":"https://api.github.com/users/pi0/orgs","repos_url":"https://api.github.com/users/pi0/repos","events_url":"https://api.github.com/users/pi0/events{/privacy}","received_events_url":"https://api.github.com/users/pi0/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T19:30:42Z","updated_at":"2017-07-03T19:30:42Z","body":"@silverbackdan This PR just looks good for me. Just wanted to mention that. Maybe just as you stated in Issue this is new recommended way and without any problems."}}
{"actor":{"display_login":"pi0"}}