Thursday, March 8, 2018

ComponentFactoryResolver

...is the magic to spin up a component dynamically in code in an Angular 4 app in lieu of by way of a selector tag or that which is bootstrapped in a module at the bootstrap metadata property. In your module amongst the metadata properties like "bootstrap" and "providers" is "entryComponents" and herein you will need to reference the dynamic component as you will also need to at "declarations" as well. I don't really understand ComponentFactoryResolver just yet.

No comments:

Post a Comment