Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@douggrubba
Last active May 22, 2021 18:02
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 douggrubba/2deab1b542b3b69f035a476746e75765 to your computer and use it in GitHub Desktop.
Save douggrubba/2deab1b542b3b69f035a476746e75765 to your computer and use it in GitHub Desktop.
A simple vue router file.
import { createWebHistory, createRouter } from 'vue-router'
import HomeScreen from '../components/screens/HomeScreen.vue'
import AppointmentsScreen from '../components/screens/AppointmentsScreen.vue'
const routes = [
{
path: "/",
name: "home-screen",
component: HomeScreen,
},
{
path: "/appointments",
name: "appointments-screen",
component: AppointmentsScreen,
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment