@tozd/vue-router-referer
@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.
Related Packages
@holamundo.app/vue-router-qs-binder
A library that simplifies binding a component's data property with vue-router qu...
280
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.0 | 2.x | BSD-3-Clause |