-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Adhoc Routing: add route dynamically #1083
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
What do you need dynamic routes for? |
Well, It is a document collaboration SPA, a number of people may editing a different pages of one document simultaneously. Each page is a node of the tree control in sidebar on every pages in editing. I need when someone added pages or changed the page title, each tree control on other pages can be updated simultaneously, and bind to a dynamically. |
I think something like Does this solve your issue? |
Closed in favour of #888 |
Hi, All. By digging into the document and examples of 2.x version. I found I have to determine every route before
router = new VueRouter(routes)
. I have a situation that some routes need to be added according to some ajax request's result. Canvue-router
add a function to support this feature (in some Vue components method):The text was updated successfully, but these errors were encountered: