title: Can I make some condition inside v-on:click?
body: <p>I have a situation is that i want to change the class of the li tag when i click it, but need under some condition is class active originally. How to make it works? Here is my code:</p>
  
  <pre><code>&lt;li v-for="timeslot in hourly.Slots" class="time-slot" 
     v-bind:class="{'selected': timeslot.Status=='selected', 'unavailable': timeslot.Status =='unavailable', 
     'active': timeslot.Status=='available'}" v-on:click="timeslot.Status='selected'"&gt;
  </code></pre>