Created
December 19, 2017 19:41
-
-
Save smartITNinja/3ebee9a1c8062c53e86619549bdba3e9 to your computer and use it in GitHub Desktop.
This file contains 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
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