{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/flow-router/issues/378","labels_url":"https://api.github.com/repos/kadirahq/flow-router/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/flow-router/issues/378/comments","events_url":"https://api.github.com/repos/kadirahq/flow-router/issues/378/events","html_url":"https://github.com/kadirahq/flow-router/pull/378","id":114540833,"number":378,"title":"Persist options object on route groups","user":{"login":"johanbrook","id":437261,"avatar_url":"https://avatars.githubusercontent.com/u/437261?v=3","gravatar_id":"","url":"https://api.github.com/users/johanbrook","html_url":"https://github.com/johanbrook","followers_url":"https://api.github.com/users/johanbrook/followers","following_url":"https://api.github.com/users/johanbrook/following{/other_user}","gists_url":"https://api.github.com/users/johanbrook/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrook/subscriptions","organizations_url":"https://api.github.com/users/johanbrook/orgs","repos_url":"https://api.github.com/users/johanbrook/repos","events_url":"https://api.github.com/users/johanbrook/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T07:25:31Z","updated_at":"2015-11-02T14:07:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kadirahq/flow-router/pulls/378","html_url":"https://github.com/kadirahq/flow-router/pull/378","diff_url":"https://github.com/kadirahq/flow-router/pull/378.diff","patch_url":"https://github.com/kadirahq/flow-router/pull/378.patch"},"body":"Addressing #375.\r\n\r\nThis patch saves the `options` object on a group, so it can be retrieved from a route later.\r\n\r\n```js\r\nconst group = FlowRouter.group({\r\n  name: 'admin',\r\n  prefix: '/admin',\r\n  layout: 'AdminLayout'\r\n});\r\n\r\ngroup.route('/path', {\r\n  action() {\r\n    // this.group.options will here be:\r\n    // { name: 'admin', prefix: '/admin', layout: 'AdminLayout' }\r\n    BlazeLayout.render(this.group.options.layout, 'template');\r\n  }\r\n});\r\n```\r\n\r\nMy first idea was to omit the `name` and `prefix` properties when attaching on the group, but that would be inconsistent with how it's done for a `Route`."},"comment":{"url":"https://api.github.com/repos/kadirahq/flow-router/issues/comments/153025683","html_url":"https://github.com/kadirahq/flow-router/pull/378#issuecomment-153025683","issue_url":"https://api.github.com/repos/kadirahq/flow-router/issues/378","id":153025683,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T14:07:26Z","updated_at":"2015-11-02T14:07:26Z","body":"Sounds good to me."}}