Reputation: 61
mounted(){
this.$root.$on('dataLoaded', (magazineData) => {
this.LoadData(magazineData);
});
}
From what I've understand it calls when dataLoaded is changed on the parent element and the magazineData is a variable inside the parent is that correct?
Upvotes: 1
Views: 34
Reputation: 38
magazineData is a parameter emitted when @dataLoaded. It depends of what kind of page you're loading.
Upvotes: 1