Vue essentials - Vuex
If you want to share data between the components in your Vue application, a great solution
for that is Vuex.
So you'll recall from the last project that we used an event bus to do that, so rather
than using the the mechanism of, you know, props and events where you have to pass props
from one component to another an event bus made that a bit easier, because it's like;
it's an object that gets injected into every component and so they can all access that well.
Click to load comments...