2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00
Files
vue-select/docs/digging-deeper/vuex.md
T
Jeff a07cb4175f Merge branch 'ft/vuepress-no-cli' into release/v3.0
# Conflicts:
#	src/mixins/typeAheadPointer.js
2019-02-16 12:36:38 -08:00

17 lines
469 B
Markdown

### Using the `input` Event with Vuex
`vue-select` emits the `input` event any time the internal `value` is changed.
This is the same event that allow the for the `v-model` syntax. When using
Vuex for state management, you can use the `input` event to dispatch an
action, or trigger a mutation.
```html
<v-select
@input="myAction"
:options="$store.state.options"
:value="$store.state.selected"
></v-select>
```
<CodePen url="aJQJyp" height="350"/>