Show/hide left sidebar on click "menu" icon when browser is in mobile mode

Hi, everyone!

I have left sidebar on page, generated with php. I have “menu” button which appears when browser is in mobile mode. “Menu” button is a small vue component. Left sidebar is outside of the vue component. How can I show/hide left sidebar when clicking on “menu” icon?

vuex

or

$on $emit

1 Like

At current moment I am working in vuex way. Thank you!