0.1.0 • Published 4 years ago

@tozd/vue-router-referer v0.1.0

Weekly downloads
121
License
BSD-3-Clause
Repository
gitlab
Last release
4 years ago

@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.

0.1.0

4 years ago