Level 47
yes he is emitting an event which takes two parameters, the name of the event loaded and the payload, which is an anonymous object.
he could have wrote this, it would have been the same
let payload = {
src : ....,
file ...
}
this.$emit('loaded', payload);
1 like