Created
November 11, 2017 08:55
-
-
Save xon52/9f550dc806414be3a22cdf3266bf5081 to your computer and use it in GitHub Desktop.
Medium - Vue Module Example - Part 1 - Setup
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
import Vue from 'vue' | |
import Router from './services/router' | |
import Store from './services/store' | |
import App from './App.vue' | |
new Vue({ // eslint-disable-line no-new | |
el: '#app', | |
template: '<App/>', | |
router: Router, | |
store: Store, | |
render: h => h(App) | |
}) |
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
import Vue from 'vue' | |
import VueRouter from 'vue-router' | |
Vue.use(VueRouter) | |
export default new VueRouter({ | |
mode: 'history', | |
routes: [] | |
}) |
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
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
export default new Vuex.Store() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment