title: NuxtJS - Use asyncData method in layout or component
body: <p>How I can use <code>asyncData</code> in layout or component (<em>forbidden apparently</em>) ?</p>
  
  <p>Because my sidebar component is used in default layout, and I need to use <code>asyncData</code> to display data from backend.
  And if I use Vuex to fetch data... I don't know how I can fetch this with global on every page.</p>
  
  <h1>My layout component annotation:</h1>
  
  <pre><code>  @Component({
      components: {
        LeftDrawer
      },
      async asyncData({ app }) {
        const latestPosts = await app.$axios.get(`/posts/latest`);
  
        return {
          latestPosts: latestPosts.data,
        };
      }
    })
  </code></pre>