[Vuejs]-How to create Framework7 side panel in normal vue?

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:

v if

v else if

v show

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.

Leave a comment