-
-
Save championswimmer/f521a511f99404d7877305f0782e9b8c 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
const module = { | |
state: {wheels: 2}, | |
mutations: { | |
incrWheels(state, extra) { | |
state.wheels += extra | |
} | |
}, | |
getters: { | |
axles: (state) => state.wheels / 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment