Actually, I work in web app with vuejs as frontend framework.
in a particular situation, I want to communicate two separate components.
I know there are many ways to do that, especially with vuex that can help us to create a maintainable application.
in my case, i found we can manipulate data between components by bus events and with mixins (by $emit
and $on
event) also.
for that, i want to know :
- how bus events and mixin work exactly ?
- what is the difference between them ?