simplify-angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
18 lines (17 loc) • 937 B
TypeScript
import { ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, Type } from '@angular/core';
import * as i0 from "@angular/core";
export declare class DynamicComponentService {
private componentFactoryResolver;
private appRef;
injector: Injector;
private componentRegistry;
private instanceRegistry;
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
getComponentRef(nameOrType: string | Type<any>): Type<any>;
registerReference(componentType: Type<any>): void;
registerComponent(name: string, componentType: Type<any>): void;
createComponent(nameOrType: string | Type<any>, data?: any): ComponentRef<any> | null;
destroyComponent(componentRef: ComponentRef<any>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
}