[Vuejs]-Problems sending a Vue.JS prop to a JavaScript function

0👍

<div :style="style">
  <label :style="text">{{obraName}}</label>
  <button @click="toggleListShow(idValue)">x</button> 
  <div :style="text"><slot></slot></div>
</div>

When you’re in the template section, you don’t need to use "this".

Leave a comment