D
D
danilr2020-02-10 12:52:12
Vue.js
danilr, 2020-02-10 12:52:12

Event in Vue on rendering of a specific div?

How is the event of the appearance / rendering of some block hung or simulated in Vue?
I have a block with the condition v-if="" , it is necessary that if this block appears, then execute a certain script.
You need to do it without components (I think it could be pushed into mounted there)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2020-02-10
@danilr

v-if="isBlockVisible"

computed: {
  isBlockVisible() {}
},
watch: {
  isBlockVisible() {}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question