Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to specify options on a FlowRouter Group #375

Closed
johanbrook opened this issue Oct 31, 2015 · 3 comments
Closed

Not possible to specify options on a FlowRouter Group #375

johanbrook opened this issue Oct 31, 2015 · 3 comments

Comments

@johanbrook
Copy link
Contributor

Would be nice to be able to specify custom options on a route group, as it's possible on a route.

Scenario:

let webapp = FlowRouter.group({
  prefix: '/app',
  name: 'webapp',
  layout: 'WebAppLayout' // custom property
});

webapp.route('/dashboard', {
  name: 'dashboard',
  action() {
    BlazeLayout.render(this.group.options.layout, {content: 'dashboard'});
  }
});
@arunoda
Copy link
Contributor

arunoda commented Oct 31, 2015

Okay. I get it.
Would love to see a PR.

@johanbrook
Copy link
Contributor Author

🚀 On it.

@arunoda
Copy link
Contributor

arunoda commented Nov 1, 2015

closing this. Let's discuss over the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants