title: How to mount a vue component?
body: <p>I normally import my components like so:</p>
  
  <pre><code>Vue.component('comments', require('./components/Comments.vue'));
  </code></pre>
  
  <p>But I wish to manually mount the .vue file depending on a condition. The docs state:</p>
  
  <pre><code>var MyComponent = Vue.extend({
      template: '&lt;div&gt;Hello!&lt;/div&gt;'
  })
  
  var component = new MyComponent().$mount()
  document.getElementById('app').appendChild(component.$el)
  </code></pre>
  
  <p>But how do I mount a component in a separate vue file?</p>