title: Is there way to inherit templates with mixins in VueJS
body: <p>Someone knows how inherit a <code>mixin</code> with its template? or how to inject dinamically elements or components from a <code>mixin</code>?</p>
  
  <p><strong>EDIT:</strong>
  I don't want to modify greeting component, I have two Mixins: 404Mixin that adds a method raise404() and show a 100% layer and LoaderMixin that have loading() method that shows a spinner in the corner. I can inherit their methods, but I have to duplicate the html in every component that I want to use it.</p>
  
  <p>Thanks</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>mixin = {
    template: '&lt;p&gt;{{ foo }}&lt;/p&gt;',
    data() {
      return {
        foo: 'Hello',
      };
    },
  }
  
  // This should  be &lt;div&gt;&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;World!&lt;/p&gt;&lt;/div&gt;
  Vue.component('greeting', {
    mixins: [mixin],
    template: '&lt;div&gt;&lt;p&gt;World!&lt;/p&gt;&lt;/div&gt;'
  });
  
  var vm = new Vue({
    el: '#app'
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdn.jsdelivr.net/vue/1.0.16/vue.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;
    &lt;greeting&gt;&lt;/greeting&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>