add a possible solution for the counter
This commit is contained in:
parent
b140453513
commit
a8736a6c8f
|
@ -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>
|
||||
|
|
Reference in New Issue