I've got dynamic component:
<component v-bind:is="current.ComponentName" :myvar="current.Text"></component>
where I'm trying to pass variable myvar
for the currently resolved component.
Subcomponent is defined like so:
<template>
<div id="home">
<h1>2 {{ myvar }} aasa</h1>
</div>
</template>
<script>
Vue.component(
'MyComponentName',
{
props: ['myvar']
});
</script>
Dynamic component resolving works but I can't get manage to pass any data via :myvar=...
. How can I do that?