createComponent
function
Creates a ComponentRef
instance based on provided component type and a set of options.
API
Usage Notes
createComponent( component: Type<C>, options: { environmentInjector: EnvironmentInjector; hostElement?: Element; elementInjector?: Injector; projectableNodes?: Node[][]; }): ComponentRef<C>;
Jump to details