Home

Awesome

Vue update-query mixin

npm version npm download

Intellectual property of Oneway.mobi

Requirements

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