Questions tagged [dynamic-components]
7 questions
2
votes
1 answer
How to create dynamic components using service without ComponentFactoryResolver as it is deprecated in angular
As you may know in earlier versions of angular, dynamic components could be created with the help of ComponentFactoryResolver as
export class DialogService {
dialogComponentRef: ComponentRef
constructor(
private…

WasiF
- 26,101
- 16
- 120
- 128
1
vote
1 answer
Dynamic component selection in Vue-Router
I have a base component that is extended by some other Components as follows:
// UserForm
// AdministratorForm
// additional fields
…

SNO
- 793
- 1
- 10
- 30
1
vote
1 answer
Laravel - How to pass array to dynamic blade component? Cannot use object of type Illuminate\View\DynamicComponent as array
I've got a dynamic component which I am trying to pass an array of data to like:
However when I try and access $data from within my…

lky
- 1,081
- 3
- 15
- 31
1
vote
0 answers
Blazor DynamicComponent displays the component twice when I change it's Type by using injected service
I have a single page blazor application,where I have a dynamic component tag
@page "/"
@if (_loadSettingCompleted)
{
0
votes
1 answer
NextJS Dynamic Component not rendering out in SSR even when SSR: true
Perhaps I misunderstand how the next/dynamic components work... but when I have code like this:
const RealContent = dynamic(() => import('./RealContentComponent'), {
loading: () => ...placeholder Not Real Content...,
ssr: true,
})…

Chenzo
- 325
- 1
- 5
- 17
0
votes
1 answer
Conditional props in intreface
I have a question regarding interfaces:
Basically I'm creating a dynamic component that change depending on which page it is. My interface is constructed like so:
interface Props {
heading: string;
description: string;
signUp?:…

Tihi
- 27
- 4
0
votes
1 answer
how to create dynamic component in react?
so i want to create a a dynamic react component that the name come from the backend like:
[
{
"data": {
"header": "this is header one",
"article": "this is article one"
},
"componentname": "Articleone"
},
{
"data":…

kxown
- 95
- 1
- 6