Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created February 27, 2018 11:38
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 matthieu-D/f296cfd636fee0b2f9ef95d468d6822e to your computer and use it in GitHub Desktop.
Save matthieu-D/f296cfd636fee0b2f9ef95d468d6822e to your computer and use it in GitHub Desktop.
var app = new Vue({
el: "#app",
store,
methods: {
incrementCounter: function() {
this.$store.commit("increment", 1);
},
decrementCounter: function() {
this.$store.commit("decrement", 1);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment