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

Is it possible to destroy the router and create a new one ? #954

Closed
nkostadinov opened this issue Nov 29, 2016 · 5 comments
Closed

Is it possible to destroy the router and create a new one ? #954

nkostadinov opened this issue Nov 29, 2016 · 5 comments

Comments

@nkostadinov
Copy link

Since we cannot modify the routes at runtime I have the following issue. A php/ajax application - I load content from ajax containing a Vue app inside with router - its working fine. But when I click a link from the navigation I want to load another page with other router + app inside. Is it possible to destroy the router so I can build a new one and/or whats the best way to achieve this ?

@LinusBorg
Copy link
Member

No, that's not possible. How should that work in your case, exactly? I don't really understand the usecase.

@nkostadinov
Copy link
Author

It's a php ajax application with some modules loaded via ajax. I want after I load a module, which is actually a vue component and it has its own internal navigation, to be able to navigate inside the module with vue router.
When the user clicks on a link in the main menu, I want to destoy this app+router and load another one which has its own routes and components.

@posva
Copy link
Member

posva commented Jan 9, 2017

Closed in favour of #888 which was the original request

@posva posva closed this as completed Jan 9, 2017
@limoli
Copy link

limoli commented Jan 3, 2018

I don't understand. Is it possible to do it or not?

@posva
Copy link
Member

posva commented Jan 3, 2018

no, it's not. What is possible is to add new routes

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

3 participants