{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1591","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1591/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1591/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1591/events","html_url":"https://github.com/nuxt/nuxt.js/issues/1591","id":255611103,"number":1591,"title":"Support Passing Props to Route Components","user":{"login":"lehni","id":213275,"avatar_url":"https://avatars3.githubusercontent.com/u/213275?v=4","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-06T13:50:47Z","updated_at":"2017-09-07T14:07:05Z","closed_at":null,"author_association":"NONE","body":"I've been trying to get this feature of `vue-router` to work with Nuxt.js:\r\n\r\nhttps://router.vuejs.org/en/essentials/passing-props.html\r\n\r\nBy default, the produced routes don't offer a way to set the `props` property.\r\n\r\nSo I've added this to my `nuxt.config.js`:\r\n\r\n```js\r\nrouter: {\r\n  extendRoutes(routes, resolve) {\r\n    // Automatically map all route params to component props:\r\n    for (const route of routes) {\r\n      route.props = /:/.test(route.path)\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nBut without any luck; The props don't seem to get passed through to my page components from the router params. What am I missing?"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/327810347","html_url":"https://github.com/nuxt/nuxt.js/issues/1591#issuecomment-327810347","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1591","id":327810347,"user":{"login":"lehni","id":213275,"avatar_url":"https://avatars3.githubusercontent.com/u/213275?v=4","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T14:07:05Z","updated_at":"2017-09-07T14:07:05Z","author_association":"NONE","body":"Hmm, I believe the other issue is about a different problem, so I am reopening again.\r\n\r\nHow can I provide a simple online test-case for Nuxt.js? Is there some scafolding I can use to provide one, e.g. on http://jsfiddle.net/ as people do for Vue.js and vue-router?"}}
{"actor":{"display_login":"lehni"}}