Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
24 lines
450 B
Vue
24 lines
450 B
Vue
<template>
|
|
<component :is="componentRendered" :data="componentProp.content" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
componentProp: {
|
|
type: Object
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
componentRendered() {
|
|
return this.componentProp.component_type.name
|
|
? () =>
|
|
import(
|
|
`@/components/DynamicComponents/${this.componentProp.component_type.name}`
|
|
)
|
|
: null
|
|
}
|
|
}
|
|
}
|
|
</script> |