13 lines
262 B
TypeScript
13 lines
262 B
TypeScript
import { EventBus } from 'quasar';
|
|
import { boot } from 'quasar/wrappers';
|
|
|
|
export default boot(({ app }) => {
|
|
const bus = new EventBus();
|
|
|
|
// for Options API
|
|
app.config.globalProperties.$bus = bus;
|
|
|
|
// for Composition API
|
|
app.provide('bus', bus);
|
|
});
|