I
I
Ivan2018-02-27 12:46:33
Vue.js
Ivan, 2018-02-27 12:46:33

How to keep multiple Vue-routers on the same page?

Good afternoon actually a subject...
In general the task would seem banal. There is a page with a router, switches components. But here is unexpected - the component can have its own router.
In the examples from the docks, there is no such thing - they recommend using child's of one router and not creating new ones, but as for me it's stupid - there can be a router in the child component ... or maybe not. It's just a sub-menu, then a third layer may appear there, and what, to describe everything in one place?
In general, I would like examples.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Zimoglyadov, 2018-02-27
@wppdevelop

See "Named Paths" https://router.vuejs.org/en/essentials/named-route... or "Named Views" https://router.vuejs.org/en/essentials/named-views.. .Turn on/off components depending on url parameters .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question