@axelspringer/mango-router
Mango router
8,066
| Install | |
|---|---|
npm install @axelspringer/mango-router@0.12.3 |
|
| Latest Version: | 0.12.3 |
| License: | MIT |
| Last Updated: | Sep 26, 2018 |
| Links: | npm |
Maintainer: andreasprang
:smiley_cat: Mango Router
Getting Started
requires a
nodeversion >= 6 and annpmversion >= 3.x.x
we do provide a
helpcommand to display all possible arguments
# Install the base package and the plugin (could also be global -g)
npm i @axelspringer/mango-router
Usage
Create a router.ts file with the following content.
import Vue from 'vue'
import Router from 'vue-router'
import { Home } from '../components/home'
import { Post } from '../components/post'
import MangoRouter from '@axelspringer/mango-router'
MangoRouter // build the route
.home(Home)
.post(Post)
Vue.use(Router)
export default new Router({
mode: 'history',
routes: MangoRouter.all()
})
This configures the vue-router under the hood to match / to the Home component and /:post to the Post component. The partial paths of the route are constructed by chaining the routes.
License
MIT
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.12.3 | MIT | |
| 0.12.2 | MIT | |
| 0.12.1 | MIT | |
| 0.12.0 | MIT | |
| 0.8.2 | MIT | |
| 0.8.1 | MIT | |
| 0.6.8 | MIT | |
| 0.6.6 | MIT | |
| 0.6.5 | MIT | |
| 0.6.4 | MIT | |
| 0.6.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.4 | MIT | |
| 0.5.1 | MIT | |
| 0.4.2 | MIT | |
| 0.4.1 | MIT | |
| 0.4.0 | MIT | |
| 0.3.0 | MIT | |
| 0.1.20 | MIT |
Pre-releases (187)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.0-9 | ^2.5.16 | MIT | |
| 1.1.0-8 | ^2.5.16 | MIT | |
| 1.1.0-7 | ^2.5.16 | MIT | |
| 1.1.0-6 | ^2.5.16 | MIT | |
| 1.1.0-5 | ^2.5.16 | MIT | |
| 1.1.0-4 | ^2.5.16 | MIT | |
| 1.1.0-3 | ^2.5.16 | MIT | |
| 1.1.0-2 | ^2.5.16 | MIT | |
| 1.0.0-beta.121 | ^2.5.16 | MIT | |
| 1.0.0-beta.120 | ^2.5.16 | MIT | |
| 1.0.0-beta.119 | ^2.5.16 | MIT | |
| 1.0.0-beta.116 | ^2.5.16 | MIT | |
| 1.0.0-beta.115 | ^2.5.16 | MIT | |
| 1.0.0-beta.114 | ^2.5.16 | MIT | |
| 1.0.0-beta.113 | ^2.5.16 | MIT | |
| 1.0.0-beta.112 | ^2.5.16 | MIT | |
| 1.0.0-beta.111 | ^2.5.16 | MIT | |
| 1.0.0-beta.110 | ^2.5.16 | MIT | |
| 1.0.0-beta.109 | ^2.5.16 | MIT | |
| 1.0.0-beta.106 | ^2.5.16 | MIT | |
| 1.0.0-beta.105 | ^2.5.16 | MIT | |
| 1.0.0-beta.104 | ^2.5.16 | MIT | |
| 1.0.0-beta.103 | ^2.5.16 | MIT | |
| 1.0.0-beta.102 | ^2.5.16 | MIT | |
| 1.0.0-beta.101 | ^2.5.16 | MIT | |
| 1.0.0-beta.100 | ^2.5.16 | MIT | |
| 1.0.0-beta.99 | ^2.5.16 | MIT | |
| 1.0.0-beta.98 | ^2.5.16 | MIT | |
| 1.0.0-beta.97 | ^2.5.16 | MIT | |
| 1.0.0-beta.96 | ^2.5.16 | MIT |
Showing the latest 30 of 187. See every release on npm
