Advertisement
wtmhahagd

how to separate concerns

May 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <div class="score-row" v-for="player in players">
  2. <p><button @click="removePlayer(player.id)">x</button></p>
  3. <p class="player">{{ player.name }}</p>
  4. <p class="total">Total<br><strong>{{ total(player) }}</strong></p>
  5. <p class="points">This hole<br><strong>{{ player.points[hole - 1] }}</strong></p>
  6. <p><button @click="$set(player.points, hole - 1, player.points[hole - 1] + 1)">+</button></p>
  7. <p><button @click="$set(player.points, hole - 1, player.points[hole - 1] - 1)">-</button></p>
  8. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement