-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Improve docs example for nested routes #715
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
Comments
Hi, thanks for filling this issue. I don't think it would really be an improvement because it would make the example less obvious and straightforward, and we don't want to encourage the practice of defining child routes inside a component, because it may not be the best for everyone's use case. So let's just keep the example simple. |
@fnlctrl Really!? I've been working with Aurelia lately and there it is considered best practice. This also means that each subcomponent can be maintained separately, including its local routes. Just my 2 cents. I'd for sure prefer this pattern in my own projects, but each to his own preference. |
@kristianmandrup @fnlctrl My router.js
and in the components/dashboard/project/routes.js
Works like charm! I like this approach more than defining all routes in one file. |
Yes, I ended up doing the same :) much better pattern! |
In the nested routes docs I see the following example.
I propose the following improvement:
Cheers ;)
The text was updated successfully, but these errors were encountered: