vue-update-query-mixin
Provided this.updateQuery(Object) mixin for updating query string, for Vue 1.x|2.x
8,772
2
| Install | |
|---|---|
npm install vue-update-query-mixin |
|
| Latest Version: | 1.1.7 |
| License: | MIT |
| Last Updated: | Apr 10, 2017 |
| Links: | GitHub · npm |
Maintainer: kenberkeley
Vue update-query mixin
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
Related Packages
vue-computed-dimensions
A mixin which allows component HTML dimensions (width, height, x and y positions...
7,109
Version History
| Version | Released | License |
|---|---|---|
| 1.1.7 | MIT | |
| 1.1.5 | MIT | |
| 1.1.4 | MIT | |
| 1.1.3 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.1.0 | Apache-2.0 |