Created
August 29, 2017 10:57
-
-
Save gearmobile/d3a9fece710bab5365c08c34054d6b73 to your computer and use it in GitHub Desktop.
Snippet Create New Store
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
"New Vue Store": { | |
"prefix": "vns", | |
"body": [ | |
"import Vue from 'vue'", | |
"import Vuex from 'vuex'", | |
"", | |
"Vue.use(Vuex)", | |
"", | |
"const state = {", | |
" ${1://}", | |
"}", | |
"", | |
"const mutations = {", | |
" //", | |
"}", | |
"", | |
"const actions = {", | |
" //", | |
"}", | |
"", | |
"const getters = {", | |
" //", | |
"}", | |
"", | |
"const store = new Vuex.Store({", | |
" state,", | |
" mutations,", | |
" actions,", | |
" getters", | |
"})", | |
"", | |
"export default store", | |
"" | |
], | |
"description": "New Vue Store" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment