@tozd/vue-router-referer
This NPM package provides a Vue plugin which exposes the route object
of the previous route for Vue Router,
under this.$router.referer
.
Installation
This is a NPM package. You can install it using NPM:
$ npm install @tozd/vue-router-referer
It requires vue
and vue-router
peer dependencies:
$ npm install vue vue-router
Usage
First, you have to register the package as a Vue plugin:
import Vue from 'vue';
import VueRouterReferer from '@tozd/vue-router-referer';
Vue.use(VueRouterReferer);
See Also
For more context, see this issue.