1.0.1 ā¢ Published 3 years ago
create-vue-route v1.0.1
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!