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

I've code api: removeRoute and replaceRoutes, may I make a pull request ? #3086

Closed
hyjiacan opened this issue Jan 3, 2020 · 1 comment
Closed

Comments

@hyjiacan
Copy link

@hyjiacan hyjiacan commented Jan 3, 2020

In order to split large project into modules, I (and someone else: #1234 #298 ) is looking for a method for dynamically routing. And I've code them, may I make a pull request ?

Here is the commit: hyjiacan@e8eef6d

Samples

They are identified by route path

Remove route

Remove path /path/to/ and all its children routes:

router.removeRoute('/path/to')

Replace routes

Replace route /path/to:

router.replaceRoutes([{
  path: '/path/to',
  component: NewComponent,
  // something else
}, {
  // more replacement
}])
@vue-bot

This comment has been minimized.

Copy link

@vue-bot vue-bot commented Jan 3, 2020

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.