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 make a eventBus in quasar framework?

    Help
    3
    5
    1558
    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.
    • K
      keyb2004 last edited by

      I am going to make a eventBus in quasar framework, just like this (in main.js ):
      var bus = new Vue();
      But it doesn’t work.

      Should I insert the eventbus in the following codes? And how to write?
      Quasar.start(() => {
      /* eslint-disable no-new */
      new Vue({
      el: ‘#q-app’,
      router,
      store,
      render: h => h(require(’./App’))
      })
      })

      Thanks!

      1 Reply Last reply Reply Quote 0
      • N
        n.taddei last edited by

        I didn’t try that, but maybe can be helpful: https://alligator.io/vuejs/global-event-bus/

        1 Reply Last reply Reply Quote 0
        • LaurentPayot
          LaurentPayot last edited by

          @keyb2004 Do you know Quasar has an integrated event system? http://quasar-framework.org/api/js-events.html

          K N 2 Replies Last reply Reply Quote 1
          • K
            keyb2004 @LaurentPayot last edited by

            @LaurentPayot Thank you , so much!!
            And thank you, @n-taddei

            1 Reply Last reply Reply Quote 1
            • N
              n.taddei @LaurentPayot last edited by

              @LaurentPayot I didn’t see that, thank you! 🙂

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