vue-update-query-mixin

1.1.7 • Public • Published

Vue update-query mixin

npm version npm download

Intellectual property of Oneway.mobi

Requirements

  • Vue 1.x | 2.x
  • Vue Router 0.7.x | 2.x

Installation

npm i vue-update-query-mixin -S

Usage

// This is a Vue component
import updateQuery from 'vue-update-query-mixin'

export default {
  mixins: [updateQuery],
  ...
}

From now on, this.updateQuery is available within the component

Example

Current url: http://demo.com/#!/test?a=1&b=2
After Running: this.updateQuery({ a: 2, b: 3 })   url changed to: http://demo.com/#!/test?a=2&b=3

This mixin is based on update-query

Readme

Keywords

Package Sidebar

Install

npm i vue-update-query-mixin

Weekly Downloads

75

Version

1.1.7

License

MIT

Last publish

Collaborators

  • kenberkeley