Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
585
Widok
0
26/05/2023 11:36 pm
Topic starter
example
1 Answer
0
26/05/2023 11:39 pm
Topic starter
1. It's not possible in easy way. Read more here.
2. Use https://github.com/developit/mitt as separated event's lib.
Example code:
Emitter:
methods: { TestEmit() { this.emitter.emit('foo', { a: 'b' }) } }
Reciever:
mounted() { this.emitter.on('foo', e => console.log('test ok!', e) },