-1

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?

amiregelz
  • 1,833
  • 7
  • 25
  • 46

1 Answers1

0

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']()
M41DZ3N
  • 326
  • 1
  • 4
  • 19