A
A
Alianos2021-05-13 14:08:02
Vue.js
Alianos, 2021-05-13 14:08:02

How to pass a function to a component via vuex?

Hello, I have a notify(str) function in one component, how can I call it from another component, I don’t need to save data anywhere, just call it, how can I implement it in vuex

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2021-05-13
@Fragster

It looks like you want it in the event bus. For example https://github.com/scottcorgan/tiny-emitter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question