title: Vue.js v-show function with data parameter
body: <p>I am trying to learn vue.js and javascript, so this is probably easy for those who already have walked the path... so please show me the way...</p>
  
  <p>I want to have a universal function that passes parameters so...</p>
  
  <p>in HTML</p>
  
  <p>I have a call to function with div id parameter</p>
  
  <pre><code>&lt;button @click="showdiv('user_likes')" type="button" class="btn btn-default"&gt;+&lt;/button&gt;
  </code></pre>
  
  <p>In vue all the div elements are by default false.
  This is my function in Vue.js methods</p>
  
  <pre><code>changediv: function(data){
          data==false ? data=true : data=false;
  
      },
  </code></pre>
  
  <p>All hints are appreciated </p>