Skip to content
On this page

Routing

On this page you will find how to add new routes and how we handled existing routes.

Overview

You can find all routes in src/router/index.js file. In this file you can find all routes and their meta data.

You can follow our pattern or use your own pattern.

Route Meta

Each route has a meta object. In this object you can find title and breadcrumb properties.

  • title is used for page title.
  • groupParent is used for breadcrumb title.
  • hide is used for hiding breadcrumb.
js
{
  path: "/",
  name: "Home",
  component: Home,
  meta: {
    groupParent: "Home",

  },
},
{
    path: "/about",
    name: "About",
    component: About,
    meta: {
        hide: true,
    },
}

COPYRIGHT © 2022 Codeshaper, All rights reserved.