Answer the question
In order to leave comments, you need to log in
How does alert.$emit("test-name", this.options) work?
I make changes to the project and see this code
selectLanguageOption(data) {
if (data === 'interface') {
alert.$emit('langChange', this.activeLang)
}
},
Answer the question
In order to leave comments, you need to log in
The event is called directly on the alert, and what this alert is is not clear from this piece of code, but most likely it is not a parent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question