How to make a eventBus in quasar framework?
-
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!
-
I didn’t try that, but maybe can be helpful: https://alligator.io/vuejs/global-event-bus/
-
@keyb2004 Do you know Quasar has an integrated event system? http://quasar-framework.org/api/js-events.html
-
@LaurentPayot Thank you , so much!!
And thank you, @n-taddei -
@LaurentPayot I didn’t see that, thank you!