correct the counter values

This commit is contained in:
Andreas Zweili 2021-01-18 18:06:05 +01:00
parent bca711b5d5
commit bee75dd9fa
1 changed files with 2 additions and 2 deletions

View File

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