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

ability to add subroutes to already registered routes #2542

Closed
piotrek-horodenski opened this issue Dec 20, 2018 · 2 comments
Closed

ability to add subroutes to already registered routes #2542

piotrek-horodenski opened this issue Dec 20, 2018 · 2 comments

Comments

@piotrek-horodenski
Copy link

What problem does this feature solve?

This feature solves lazy loading problems in big applications, where we don't even want all routes to be registered for unauthorized users.

What does the proposed API look like?

It could be based on named routes - only named route could have its children list extended.
router.addRoutes when called with 2 arguments (name, route[]), would seek for named route by name and add route[] to its children

@posva
Copy link
Member

posva commented Dec 20, 2018

duplicate of #1156

@posva posva closed this as completed Dec 20, 2018
@piotrek-horodenski
Copy link
Author

it's a duplicate of #2064

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