R
R
Rishat Sultanov2018-04-10 20:00:53
Vue.js
Rishat Sultanov, 2018-04-10 20:00:53

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

1 answer(s)
D
Dima Pautov, 2018-04-10
@rishatss

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 question

Ask a Question

731 491 924 answers to any question