How to call a function from the component by pressing a button in the footer Vue js?
The structure is this:
There's Layout, he has two component Footer and NavBar
In the same layout'e is the main content (a) in this component has a function.
The question is, how by pressing a button in the Footer, you can call the function in main component.
Such a structure
LayOut - the Main component (router view (nuxt))
asked March 23rd 20 at 19:38
How to use eventbus send the press event on the button in the footer, basically a component of the sign and call the correct function.