I have dynamic created component using ComponentFactoryResolver. I want to insert this into template. I tried to use templateRef or viewContainerRef but not of them worked out.
ComponentOutlet expects component class not instance, ViewContainerRef expects template ref. None of them work with created instance.
How can make it work with created component instance ? Is there any way to do it ?
SOLUTION
I solved my problem using insert method of ViewContainerRef