Answer the question
In order to leave comments, you need to log in
Why spread syntax at the beginning of methods and how does it work in this case?
I didn’t see an example here using object methods
https://developer.mozilla.org/en-US/docs/Web/JavaS...
export default {
name: 'App',
data() {
return {
activeItemId: null,
}
},
components: {
ViewDataList,
ViewDataItem
},
computed: {
...mapGetters(['loadStatus', 'dataItemInfo', 'currentItem', 'secondStep'])
},
methods: {
...mapActions(['loadDataItemInfo', 'moveBack']),
async nextStep() {
this.loadDataItemInfo();
}
}
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question