0👍
you can simply make both panels and show them conditionally based on the loggedIn
boolean. with v-show this is very easy. check these out:
0👍
You can create a component where you sent a Json with the menu data.
For example:
{[
{"name":"name_route1", "route":"@/miRuta1.vue"},
{"name":"name_route2", "route":"@/miRuta1.vue"},
{"name":"name_route3", "route":"@/miRuta1.vue"}
]}
This way you would have the same component (you would use the same panel) but dynamically you would pass the elements that it is going to mount.
- [Vuejs]-Reorder dom not binding to vue array instance?
- [Vuejs]-Gulp/Webpack not transpiling Vue files
Source:stackexchange.com