Answer the question
In order to leave comments, you need to log in
How to pass an event through many components?
Actually, the question is this:
If we need to transfer data from parent to child to an arbitrarily deep level, we can use provide/inject
, but if we need to do it in the opposite direction? Does it just emit an event through dozens of components? Or would it be preferable to use bus/vuex?
Answer the question
In order to leave comments, you need to log in
If we need to pass data from parent to child to an arbitrarily deep level, we can use provide/inject
, but if we need to go in the opposite direction?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question