P
P
picka2020-10-03 18:30:40
Vue.js
picka, 2020-10-03 18:30:40

How to run a script in Vue.js after loading an image or video?

I have a script that calculates colors in a photo or video, but it throws errors because vue runs it before the image is loaded.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-10-03
@picka

Just like without Vue - wait for loading:<img @load="doSomething" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question