Skip to content

Instantly share code, notes, and snippets.

@willchambers99
Created March 18, 2020 10:51
Show Gist options
  • Save willchambers99/6592fe8d8b4425ae41a026df34ad962d to your computer and use it in GitHub Desktop.
Save willchambers99/6592fe8d8b4425ae41a026df34ad962d to your computer and use it in GitHub Desktop.
A skeleton for creating a router file
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
]
const router = new VueRouter( {
mode: 'history',
base: process.env.BASE_URL,
routes
})
export default router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment