How can I catch the this.$emit from the ionic model controller?
I've found this question, but the solution is deprecated:
How can i catch a modal this.$emit using ionic modal controller
How should I do this in Vue3?
My code looks like this:
mounted() {
this.$on('updateMaterialList', () => {
this.$ionic.modalController.dismiss()
})
}
The error is the following:
The Events api `$on`, `$off` `$once` is deprecated.