title: How to Set A Methods For A Class In Vue.js
body: <p>you know that we can use on events for a class in JQuery. 
  for instance </p>
  
  <pre><code>$(".example").click(function(){
  //the process
  })
  </code></pre>
  
  <p>I am new on Vue.js and I am working on methods in vue.js
  Vue use v-on attr to set a method for a element. But I dont want to define attr for all elements whichs use same function.</p>
  
  <p>For Example</p>
  
  <pre><code>&lt;ul class="container"&gt;
     &lt;li v-on="click:Menu" &gt;Menu 1&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ol class="click"&gt;
     &lt;li v-on="click:Menu" &gt;Menu 1&lt;/li&gt;
     &lt;li v-on="click:Menu" &gt;Menu 2&lt;/li&gt;
  &lt;/ol&gt;
  </code></pre>
  
  <p>You must saw, I used v-on attr for all li elements. For li elements it is not problem, I can solve it v-repeat but for some cases, I have to set same function for lots of divs or form. I want to set a class for a function and set a method for the class. </p>
  
  <p>Is there any solution for it?</p>