Created
November 2, 2018 17:37
-
-
Save vertcitron/34bb84b4a75002923509839f5c446990 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// get logged in user infos : | |
const user = this.$store.getters['user/data'] | |
// register a new user to the backend : | |
this.$store.dispatch('user/create', newUser) | |
// modify a todo : | |
this.$store.dispatch('todos/update', modifiedTodo) | |
// etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment