Questions tagged [custom-events]

The custom-events tag is an ambigious tag used when a question targets an event in an event-driven system created an maintained by the asker him or her -self.

The custom-events tag is an ambigious tag used when a question targets an event in an event-driven system created an maintained by the asker him or her -self. This tag should be used with care, and only if the question is about creating, triggering or handling an event that is not part of the default event-handling in the "system" or technology that otherwise is at question.

253 questions
3
votes
1 answer

Listen to custom event from js code in script tags vue2

I emit custom event from one of great-grandson of my app.vue main component like this: this.$emit('logged'); And now I want to listen to this event in my app.vue main component but I would rather do it from javascript within