-
-
Save championswimmer/582ac43cad84cb006b0a1c37af6541fb 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
@Module | |
class MyModule extends VuexModule { | |
wheels = 2 | |
@Mutation | |
incrWheels(extra) { | |
this.wheels += extra | |
} | |
get axles() { | |
return (this.wheels / 2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment