Created
February 27, 2018 11:38
-
-
Save matthieu-D/f296cfd636fee0b2f9ef95d468d6822e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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