- A forward to B, then forward to C;
- C back to B, B will recover from cache;
- B forward to C again, C will rebuild, not recover from cache;
- C forward to A, A will build, now the route contains two A instance.
- max属性取值表示最大缓存数
- !important: navigation adds a key to the url to distinguish the route. The default name of the key is VNK, which can be modified.
## Usage
### Basic Usage
入口js引入dist目录下的vue-navigation.esm或者将src目录下面代码作为组件直接引用
```javascript
import Vue from 'vue'
import router from './router' // vue-router instance
import Navigation from './dist/vue-navigation.esm'
Vue.use(Navigation, {router})
// bootstrap your app...
App.vue
<template>
<navigation max='10'>
<router-view></router-view>
</navigation>
</template>