Skip to content

Instantly share code, notes, and snippets.

@kevinnio
Created April 26, 2019 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinnio/983fdb8d2f096eafa3d2dfc8eba74e81 to your computer and use it in GitHub Desktop.
Save kevinnio/983fdb8d2f096eafa3d2dfc8eba74e81 to your computer and use it in GitHub Desktop.
<div id="counter-app" style="text-align: center">
<h3>{{ counter }}</h3>
<button v-on:click="counter += 1">Count up!</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
new Vue({
el: '#counter-app',
data: { counter: 0 }
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment