Include global functions in Vue.js : <p>In my Vue.js application I want to have some global functions. For example a <code>callApi()</code> function which I can call every time I need access to my data.</p>

<p>What is the best way to include these functions so I can access it in all my components?</p>

<ul>
<li>Should I create a file functions.js and include it in my main.js?</li>
<li>Should I create a Mixin and include it in my main.js?</li>
<li>Is there a better option?</li>
</ul>
