Hi I'm trying to render component view through ComponentFactoryResolver and put to the DOM, but properties are undefined on render, what to do in that case?
property in component:
@Input('productId') productId;
creating view and passing data to property:
const componentRef: any = this.componentFactoryResolver
.resolveComponentFactory(component)
.create(this.injector);
componentRef.instance.productId = data.productId;
and in template
<div>{{ productId }}</div>
productId is undefined