Is it possible to use q-drawer-link without putting parent route every time?



  • I have my route component for most of routes which is /panel
    In drawer I have links to all subroutes and also parent route.
    Do I have to put in every link /panel/subrouteName or can I do it better?


  • Admin

    You can add a method to your VM, something like: getDrawerLink(subroute) which returns ‘/panel/’ + subroute. Then use :to="getDrawerLink('subrouteName')".

    Be creative :)


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.