1.0.0 • Published 5 years ago

vuex-map-state v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

vuex-map-state

Installation

$ npm install vuex-map-state --save

Usage

<template>
  <form>
    <input v-model="name">
    <input v-model="email">
  </form>
</template>

<script>
import { mapStateTwoWay } from 'vuex-map-state';

export default {
  computed: {
    ...mapStateTwoWay('user', ['name', 'email'])
  }
}
</script>

License

The vuex-map-state is open source software licensed under the MIT license.