DEV Community

[Comment from a deleted post]
Collapse
 
daviddalbusco profile image
David Dal Busco

Hi Julio,

I am not absolutely sure but, you can maybe pass parameters using the componentRef.

// As in the blog post
this.componentRef = this.componentFactoryResolver
      .resolveComponentFactory<T>(component)
      .create(this.injector);

// Pass values. Something being an Input() of the component.
this.componentRef.instance.something = yourValue;
Enter fullscreen mode Exit fullscreen mode