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

    how to use Vuex-Router-sync in Quasar project (v0.17)

    Useful Tips (NEW)
    3
    3
    836
    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.
    • L
      Lou Rectoret last edited by

      1- Add vuex-router-sync as a plugin in quasar.conf.js:
      0_1548328835413_1ef66bfb-94b3-44e1-8a1b-f592d33425f4-imagen.png

      2- In plugins folder create a file named : vuex-router-sync, and add:

      import { sync } from 'vuex-router-sync'
      
      export default ({ router, store, Vue }) => {                   
          sync(store, router)
      }
      
      

      3- Check in vue-devtools the Central State:
      0_1548329458620_7d2c4138-d58c-4fef-bcf0-eb4b198cf247-imagen.png

      1 Reply Last reply Reply Quote 1
      • B
        bijanabedian last edited by

        thank you

        1 Reply Last reply Reply Quote 1
        • bvc238
          bvc238 last edited by

          Thanks a lot

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