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

The addRoutes method need to suport adding dynamic routes as children to an existing route #2622

Closed
hzsrc opened this issue Feb 22, 2019 · 1 comment

Comments

@hzsrc
Copy link

hzsrc commented Feb 22, 2019

What problem does this feature solve?

The addRoutes method currently only suport add new routes to root routes. But if can not add routes as children to an existing route.

What does the proposed API look like?

router.addRoutes(routes: Array, parent ? : Location)

Like:
router.addRoutes([...childRoutes], '/main')

@posva
Copy link
Member

posva commented Feb 22, 2019

Duplicate of #1156

@posva posva marked this as a duplicate of #1156 Feb 22, 2019
@posva posva closed this as completed Feb 22, 2019
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