$emit on app extension
-
Hello all
could you kindly help me with $emit method on app extension? I would raise an event from app extension catching it on parent application. In my app-extension (not UI) I have my boot file with a piece of code like this one:export default ({ app, router, store, Vue }) => { Vue.prototype.$test = function () { //here I want to raise my emit event } }
I tried using: this.$emit, Vue.$emit, this.$root.$emit, app.$emit but without any result (usually I got un emit is not a function error)
Can you help me please?
-
@Cosby That’s because the Vue instance hasn’t been instantiated at that point
-
Any hints about how to user $emit in boot function defintion?
-
You should tag @Hawkeye64 in your post so he gets an notification of your new message.