Skip to content

Instantly share code, notes, and snippets.

@bodrovis
Created April 12, 2020 15:11
Show Gist options
  • Save bodrovis/f8bc615f628b0a469b7434119924f332 to your computer and use it in GitHub Desktop.
Save bodrovis/f8bc615f628b0a469b7434119924f332 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import VueRouter from 'vue-router'
import i18n from '../i18n'
function load(component) {
// '@' is aliased to src/components
return () => import(`@/views/${component}.vue`)
}
Vue.use(VueRouter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment