vue-router-back-mixin
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Vue Router Back Mixin

Mixin to navigate back with Vue Router

This requires you use vue and vue-router.

npm version

Usage

$ npm install vue-router-back-mixin

In component, you can call backMixin_handleBack method

 
import BackMixin from `vue-router-back-mixin`
 
export default {
  ...
  mixins: [BackMixin],
  methods() {
    goBack() {
      this.backMixin_handleBack()
    }
  }
  ...
}

You can provide fallbackUrl by passing to backMixin_handleBack

For example:

backMixin_handleBack('/home')

Support

Buy Me A Coffee

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i vue-router-back-mixin

    Weekly Downloads

    14

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    2.02 kB

    Total Files

    4

    Last publish

    Collaborators

    • ittus