create-vue-route
v1.0.1
Published
A function to create a vuejs route with ease. Returns the object needed for the `routes` array.
Downloads
2
Readme
A function to create a vuejs route with ease. Returns the object needed for the
routes
array.
🏠 Homepage
Install
Run this in your vuejs project:
$ npm install create-vue-route
Usage
In src/router/index.js
:
import createRoute from 'create-vue-route';
import Home from '../views/Home.vue'; // And any other views you have
const routes = [
createRoute('/', 'Home', Home, { title: 'My Website | Home' })
// ^^ this will return an object to define a vuejs route.
];
Author
👤 njberman
- Github: @njberman
Show your support
Give a ⭐️ if this project helped you!