I have my own JavaScript code injected to the scope of a 3rd party Vue web app.
I want to trigger actions in the Vue App (same as when a user interacts with its components) simply from my JS code.
Is it possible to do somehow?
I have my own JavaScript code injected to the scope of a 3rd party Vue web app.
I want to trigger actions in the Vue App (same as when a user interacts with its components) simply from my JS code.
Is it possible to do somehow?
You can use default Javascript Event trigger methods to do this because the vue app is already build. (it is just a normal web app at that point)
for example to trigger a click on a button
document.querySelector('.my-button')['click']()