-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Description
How can i use mapActions, or mapGetters with using classes?
in vuex they use:
computed: {
...mapState('foo', {
// state is the state of the foo/
module instead of root
bar: state => state.bar
}
},
methods: {
...mapActions('foo', [
// map this.doSomething() to this.$store.dispatch('foo/doSomething')
'doSomething'
])
}
b-zee, 1ambda, sabrinaluo, ichsarut, catchergeese and 4 more
Metadata
Metadata
Assignees
Labels
No labels