vue-router-app
v0.0.5
Published
router stack for web app
Downloads
8
Readme
router stack for web app
requirements
- Vue ^2.2.0
- Vue-Router ^2.0.0
- router's component must be given a name as same as router's
usage
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueRouterApp from 'vue-router-app'
...
let router = new VueRouter({...})
Vue.use(VueRouterApp, {router})
...
<app-router></app-router>
lifecycle
| hook | action | | ------------- | ------ | | mounted | push | | activated | show | | deactivated | hide | | beforeDestroy | pop |