@tozd/vue-router-referer

    0.1.0 • Public • Published

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

    Install

    npm i @tozd/vue-router-referer

    DownloadsWeekly Downloads

    148

    Version

    0.1.0

    License

    BSD-3-Clause

    Unpacked Size

    3.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • mitar