# vue-router-back-mixin

> Back Mixin for Vue Router

Latest version **0.0.3** (published 2019-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-router-back-mixin
pnpm add vue-router-back-mixin
yarn add vue-router-back-mixin
bun add vue-router-back-mixin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-09-11 |
| First published | 2019-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vu Minh Thang |
| Maintainers | ittus |
| Keywords | vue, vue-router, mixin, back, back-button |

## Links

- npm: https://www.npmjs.com/package/vue-router-back-mixin
- Repository: https://github.com/ittus/vue-router-back-mixin
- Issues: https://github.com/ittus/vue-router-back-mixin/issues
- npm.io page: https://npm.io/package/vue-router-back-mixin

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2019-09-11
- 0.0.2 — 2019-09-11
- 0.0.1 — 2019-09-11

## README

# Vue Router Back Mixin

> Mixin to navigate back with Vue Router

> This requires you use vue and vue-router.

[![npm version](https://badge.fury.io/js/vue-router-back-mixin.svg)](https://www.npmjs.com/package/vue-router-back-mixin)

### Usage


``` bash
$ npm install vue-router-back-mixin
```

In component, you can call `backMixin_handleBack` method
```javascript

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:

```javascript
backMixin_handleBack('/home')
```

## Support

<a href="https://www.buymeacoffee.com/8buMYCOog" target="_blank"><img src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>

---
_Source: https://npm.io/package/vue-router-back-mixin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
