1.0.0 • Published 5 years ago
vuex-map-state v1.0.0
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.
1.0.0
5 years ago