SHARE
TWEET

Vue JS

a guest May 26th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             <div class="item-master" @click="changeArrow">
  2.             <div class="item-child" :style="(isActive)? 'display: block'">
  3.                 <ul>
  4.                     <li class="item-child-list">Add</li>
  5.                 </ul>
  6.             </div>
  7.             </div>
  8.             <div class="item-child" :style="(isActive)? 'display: block'">
  9.                 <ul>
  10.                     <li class="item-child-list">Add</li>
  11.                 </ul>
  12.             </div>
  13.  
  14.             data(){
  15.                 return{
  16.                     isActive: false,
  17.                 }
  18.             },
  19.  
  20.            methods: {
  21.             changeArrow: function (e) {
  22.                 this.isActive = !this.isActive;
  23.             },
  24.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top