add a possible solution for the counter
This commit is contained in:
parent
b140453513
commit
a8736a6c8f
|
@ -17,8 +17,8 @@
|
||||||
</header>
|
</header>
|
||||||
<section id="events">
|
<section id="events">
|
||||||
<h2>Events in Action</h2>
|
<h2>Events in Action</h2>
|
||||||
<button>Add</button>
|
<button v-on:click="counter++">Add</button>
|
||||||
<button>Reduce</button>
|
<button v-on:click="counter--">Reduce</button>
|
||||||
<p>Result: {{ counter }}</p>
|
<p>Result: {{ counter }}</p>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|
Reference in New Issue