I want to load a component from a dynamic variable name in my vue.js application.
I have the following component registered:
<template id="goal">
<h1>Goal:{{data.text}}</h1>
</template>
Instead of loading it like this
<goal></goal>
I want to load from a variable name, something like this:
<{{mytemplate.type}}></{{mytemplate.type}}>
Where, of course, mytemplate.type would be, in this case equal to "goal".