title: Conditional @click with a method in vuejs
body: <p>This is my for loop:</p>
  
  <pre><code>  &lt;li v-for="(crumb, index) in breadcrumbs" :class="{ 'is-active' : index==breadcrumbs.length-1 }"&gt;
      &lt;a href="javascript:void(0)" v-if="index==breadcrumbs.length-1"&gt;{{ crumb.name }}&lt;/a&gt;
    &lt;/li&gt;
  </code></pre>
  
  <p>@click="methodName" shouldn't be available for the last iteration.</p>
  
  <p>I can check the last iteration with index==breadcrumbs.length-1
  Is this possible using apply v-if?</p>