0.0.3 • Published 6 years ago

vue-query-data-sync v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Vue query data sync

If you in looking for some lib for your project. Do not use this code! Quality of this code is very low

How to use

// main.js
// register plugin
import DataQueryString from "./plugins/data_query_sync";
// in component
module.exports = {
    data: {
        category__id: 0,
        service__id: 0
    },
    watch: {
        // Push data to querystring on change in some properties
        category__id () {
            this.$pushToQuery()
        },
        service__id () {
            this.$pushToQuery()
        }
    },
    mounted () {
        // get a data from query string on component mount
        this.$getFromQuery()
    }
}
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago