No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help
    2
    2
    1060
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mariaczi last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

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

        Be creative 🙂

        1 Reply Last reply Reply Quote 1
        • First post
          Last post