add a possible solution for the counter

This commit is contained in:
Andreas Zweili 2021-01-18 17:49:09 +01:00
parent b140453513
commit a8736a6c8f
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@
</header>
<section id="events">
<h2>Events in Action</h2>
<button>Add</button>
<button>Reduce</button>
<button v-on:click="counter++">Add</button>
<button v-on:click="counter--">Reduce</button>
<p>Result: {{ counter }}</p>
</section>
</body>