Answers for "dynamic component angular parameters"

1

dynamic component angular parameters

const factory = this.componentFactoryResolver.resolveComponentFactory(LoginComponent);
    const component: ComponentRef<LoginComponent> = this.viewContainerRef.createComponent(factory);
    component.instance.user = "prop 1";
    component.instance.input2 = "prop 2";
Posted by: Guest on August-13-2020

Code answers related to "dynamic component angular parameters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language