Edit in JSFiddle

  const vm = new Vue({
    el: "#app",
    data: {a: 0},
  })
<div id="app">
  <div class="btn btn-primary" @click.once="a += 1">
    ★
    <div class="badge">
      {{a}}
    </div>
  </div>
</div>