Skip to content

Instantly share code, notes, and snippets.

@douggrubba

douggrubba/index.js

Last active May 22, 2021
Embed
What would you like to do?
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