Skip to content

Instantly share code, notes, and snippets.

@smartITNinja
Created December 19, 2017 19:41
Show Gist options
  • Save smartITNinja/3ebee9a1c8062c53e86619549bdba3e9 to your computer and use it in GitHub Desktop.
Save smartITNinja/3ebee9a1c8062c53e86619549bdba3e9 to your computer and use it in GitHub Desktop.
const home = {
template: '#homeTpl'
}
const profile = {
template: '<div>PROFILE to be defined</div>'
}
const login = {
template: '<div>LOGIN to be defined</div>'
}
const register = {
template: '<div>SIGN UP to be defined</div>'
}
const routes = [{
path: '/',
component: home
}, {
path: '/profile',
component: profile
}, {
path: '/login',
component: login
}, {
path: '/register',
component: register
}]
const router = new VueRouter({
routes
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment