title: How to call mounted or created within a Vue plugin?
body: <p>I am trying to create some plugins according to this article:</p>
  
  <p><a href="https://alligator.io/vuejs/creating-custom-plugins/" rel="nofollow noreferrer">https://alligator.io/vuejs/creating-custom-plugins/</a></p>
  
  <p>I have a plugin that needs to run something when the root Vue instance mounts or is created. So far I can only see a way to inject something into all components which is not what I would want.</p>
  
  <p>I simply need to do something when the main Vue instance mounts. How can I do this with a plugin? </p>
  
  <p>The <code>install</code> method from the plugin does not seem to do the trick because this seems to happen before the actual <code>created</code> method.</p>