Skip to content

Instantly share code, notes, and snippets.

@kevinnio kevinnio/vue-event-3.html Secret
Created Apr 26, 2019

What would you like to do?
<div id="counter-app" style="text-align: center">
<h3>{{ counter }}</h3>
Increment by <input type="number" v-model="increment" />
<button v-on:click="counter += parseInt(increment)">Count up!</button>
<script src=""></script>
new Vue({
el: '#counter-app',
data: { counter: 0, increment: 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.