Answer the question
In order to leave comments, you need to log in
How to make JS work in the Vue component in the right place?
Good evening gentlemen!
Let's say I have a component in which there is a script that should be processed only on the page where this component is explicitly called.
How to do this?
Answer the question
In order to leave comments, you need to log in
in the mounted section you write your script and it will be called only when the component is called. What's so difficult?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question