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

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

Related Packages

vue-media-query-mixin

A vue mixin to get current media query, xs, sm, md and lg.

988 27
vue-computed-dimensions

A mixin which allows component HTML dimensions (width, height, x and y positions...

7,109
@puti94/gql-utils

graphql 工具

3,181 1
vue-element-query

VueJS mixin plugin for creating element size queries in components

1,433 53

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