title: this.$root.$emit not working in Vue
body: <p>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:</p>
  
  <pre><code>this.$root.$emit('access-token', accessToken);
  </code></pre>
  
  <p>In root component (the top component, first to load) I do this (edit: this is in the mounted() method):</p>
  
  <pre><code>this.$on('access-token', this.setAccessToken);
  </code></pre>
  
  <p>It doesn't react to the event though. Why?</p>