Skip to content

Instantly share code, notes, and snippets.

Last active May 22, 2021 18:02
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(),
export default router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment