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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.7169latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.7169
1.1.51
1.1.41
1.1.31
1.1.21
1.1.11
1.1.01
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01
0.1.01

Package Sidebar

Install

npm i vue-update-query-mixin

Weekly Downloads

181

Version

1.1.7

License

MIT

Last publish

Collaborators

  • kenberkeley