title: VueJS: autoload component based on tag's prefix
body: <p>I am trying to define components based on the prefix at the moment Vue parses the content (I am not using Vuex).</p>
  
  <p>I found that Vue.config has a <code>isUnknownElement</code> function but didn't find any documentation about it. Using this function I can execute Vue.component (with an async function) if the prefix matches, and I don't get the unknown component error, but the component is not rendered because the async function is not triggered. It will be triggered correctly the next time the tag is parsed.</p>
  
  <p>The only solution I found so far to get it working is to render the component twice (putting it in a v-if and changing the variable it's bound to)</p>
  
  <p>Does anyone know of a cleaner way?</p>
  
  <p>Why doing this? In my apps, always SPA, I have a bunch of custom components all starting with the same prefix, and all with the same path architecture, so my component's name always correspond to its path (replacing dashes with slashes). It's why a global function to register on-demand each component starting with this prefix would come handy :)</p>