N
N
nastya_zholudeva2018-04-12 13:10:51
Vue.js
nastya_zholudeva, 2018-04-12 13:10:51

How to make it so that the function is called after the successful operation of this.$eh.$emit?

this.$eh.$emit('remove-from-cart', this.cartItemId)

how to make the function payload.callbackfire after this.$eh.$emit completes.
Tried
this.$eh.$emit('remove-from-cart', this.cartItemId, payload.callback )

and
this.$eh.$emit('remove-from-cart', {this.cartItemId, done: () => payload.callback} )

but didn't help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question