Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created January 18, 2018 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmiller1990/7b50427cd5e051bd1b0e2ec81ff1ae95 to your computer and use it in GitHub Desktop.
Save lmiller1990/7b50427cd5e051bd1b0e2ec81ff1ae95 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ProfileView from '@/views/profile/Index'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
},
{
path: '/profile',
name: 'Profile',
component: ProfileView
}
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment