Is it possible to dynamically load a component in a vue.js application using a variable name?
For example, if I have the following component registered:
<template id="goal">
<h1>Goal:{{data.text}}</h1>
</template>
Instead of directly loading it like this
<goal></goal>
I'm looking for a way to load it from a variable name, something like this:
<{{mytemplate.type}}></{{mytemplate.type}}>
In this scenario, mytemplate.type would be equal to "goal". Is there a way to achieve this in vue.js?