title: Call mixin function from asyncData() method of the page component with Nuxt.js
body: <p>Can I call mixin function from <code>asyncData()</code> method of the page component with Nuxt.js?</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;template&gt;
    ...
  &lt;/template&gt;
  &lt;script&gt;
     import api from "@/plugins/api/api.js"
  
     ...
  
     export default {
  
        ...
  
        async asyncData(context) {
            ...
            context.apiMethodName()
            ...
        }
  
        ...
     }
  
     ...
  &lt;/script&gt;
  </code></pre>
  
  <p><code>api.js</code></p>
  
  <pre><code>import Vue from 'vue'
  import API from '@/assets/js/api'
  
  Vue.mixin({
    methods: {
      apiMethodName() { ... }
    }
  })
  </code></pre>