I want to emit an event on the root component, and listen to in in the root component. In a child of child component I do this:
this.$root.$emit(\'access-tok
You are not using the $root for the event $on
$root
$on
Change this:
this.$on('access-token', this.setAccessToken);
for this:
this.$root.$on('access-token', this.setAccessToken);