Answer the question
In order to leave comments, you need to log in
Why doesn't the condition work on Vue?
Hello! Today I spent the whole day tinkering with a problem: there is a task to draw a drop-down menu for elements of a certain category of goods (site on Bitrix). On the Vue front, it's all bundled with Webpack. From Bitrix, I get the GUID of the section from the infoblock, and if I see the desired section, I throw the flag to the front, for example (show_times = N or show_times = false), depending on what the menu will be drawn or not. Here is the drawing code
<div id="root">
<div class="какой-то блок" v-for="serv is Services">
<select v-if="((serv.times.length > 1) && (serv.show_times === 'Y'))">
<!--Тут какие-то options-->
</select>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
try to see what's in Services through the Vue Devtools browser extension. In order for it to work in init.php add define('VUEJS_DEBUG', true);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question