Last active
          March 7, 2018 14:49 
        
      - 
      
 - 
        
Save duwaljyoti/127a988dc43b6560a1179c49bc7b8e89 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
    
  
  
    
  | import Vue from 'vue'; | |
| import Vuex from 'vuex'; | |
| import VueRouter from 'vue-router'; | |
| import routes from './routes'; // user routes | |
| import store from './store'; // user store | |
| Vue.use(VueRouter); | |
| Vue.use(Vuex); | |
| // injecting the user routes to the vue router instance. | |
| const router = new VueRouter({ | |
| routes, | |
| }); | |
| //creating a new vue instance | |
| const userApp = new Vue({ | |
| router, | |
| store, | |
| }); | |
| //manually starting the mounting of unmounted vue instance. | |
| userApp.$mount('#app'); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment