DEV Community

Andrei Gatej
Andrei Gatej

Posted on

(Angular): Load dynamic component multiple times with different data

I need to load a dynamic component multiple times and pass data dynamically based on some value so that it will load with runTime data.

I have tried below example https://dzone.com/articles/how-to-dynamically-create-a-component-in-angular

as per example we have one messageComponent that have "message" property and in hostComponent we are adding one template…

Top comments (0)