quasar-app-extension-route-generator

0.0.6 • Public • Published

Quasar App Extension route-generator

"Nuxt-like" routing in Quasar projects | fixed backward slash | forked from quasar-app-extension-auto-routing

Install

quasar ext add route-generator

Quasar CLI will retrieve it from the NPM registry and install the extension to your project.

Lastly, dive into src/router/routes.ts and use the generated routes:

import generatedRoutes from './route-generator' // 🤿 Here

const routes = [
  ...generatedRoutes, // 🤿 And here
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/Index.vue') }
    ]
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes

Readme

Keywords

none

Package Sidebar

Install

npm i quasar-app-extension-route-generator

Weekly Downloads

9

Version

0.0.6

License

MIT

Unpacked Size

7.1 kB

Total Files

9

Last publish

Collaborators

  • khaleghi_milad