mitt icon indicating copy to clipboard operation
mitt copied to clipboard

Emit issue on Vue 3.

Open tejas208 opened this issue 10 months ago • 1 comments

Hi,

Here is my app.js code: import mitt from 'mitt' const emitter = mitt();

app.config.globalProperties.$bus = emitter;

Here is my ActionButton.vue code

When we click on the edit button that time this.$bus.emit() event is not fire. can you please help me for the error occured.

Thanks!

tejas208 avatar Apr 09 '24 06:04 tejas208

You can use emit in the following ways: File path:“src/utils/bus.js” ...JavaScript import mitt from 'mitt' const EventBus = mitt() export default EventBus ...

Use path :"scr/view/use.vue" ...vue

daydayup001001 avatar May 28 '24 06:05 daydayup001001