2019-06-19
2576
#vue
Jordan Irabor
3154
Jun 19, 2019 â‹… 9 min read

Router options compared: Vue Router, Voie, Vue-routisan and Vue-route

Jordan Irabor Jordan is an innovative software developer with over five years of experience developing software with high standards and ensuring clarity and quality. He also follows the latest blogs and writes technical articles as a guest author on several platforms.

Recent posts:

Vue.js logo over a dark, textured purple background. The article discusses using defineExpose and in Vue 3 to enhance component interaction and enable dynamic theming.

defineExpose and <style vars> in Vue 3 for component interaction and theming

Simplify component interaction and dynamic theming in Vue 3 with defineExpose and for better control and flexibility.

Clara Ekekenta
Nov 7, 2024 â‹… 8 min read
How to set up TypeScript with Node.js and Express

How to set up TypeScript with Node.js and Express

Explore how to integrate TypeScript into a Node.js and Express application, leveraging ts-node, nodemon, and TypeScript path aliases.

Aman Mittal
Nov 7, 2024 â‹… 10 min read
Cover image for es-toolkit, a Lodash alternative

es-toolkit, a Lodash alternative

es-toolkit is a lightweight, efficient JavaScript utility library, ideal as a modern Lodash alternative for smaller bundles.

Rishi Purwar
Nov 6, 2024 â‹… 5 min read
JS Logo Over Blue Background

The ResizeObserver API: A tutorial with examples

The use cases for the ResizeObserver API may not be immediately obvious, so let’s take a look at a few practical examples.

Kevin Drum
Nov 5, 2024 â‹… 9 min read
View all posts

2 Replies to "Router options compared: Vue Router, Voie, Vue-routisan and Vue-route"

  1. You can create a folder called `routes` in the `src` directory. Then create a file called `index.js` within the `src/routes` directory and paste in the following code:

    “`import Home from ‘../components/Home’
    import About from ‘../components/About’

    const routes = [
    {
    path: ‘/’,
    name: ‘home’,
    component: Home
    },
    {
    path: ‘/about’,
    name: ‘about’,
    component: About
    }
    ]
    export default routes“`

Leave a Reply