X
X
Xveeder2019-05-04 10:47:47
Vue.js
Xveeder, 2019-05-04 10:47:47

The required value gets into the variable of the VUE component, but the v-if directive does not work, how to fix it?

Good afternoon, ladies and gentlemen. Using the mounted hook, I send a request to the server, depending on the result, I put the value true or false in the active variable from the data object. I put a v-if directive on the block that listens to this variable.
As a result, even when the variable contains the value false (checked through the console), the v-if directive still does not work.
There is a feeling that the directive does not track the change in the state of the variable.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question