@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
24 lines (23 loc) • 812 B
TypeScript
import { ComponentRef, Injector, Type, ViewContainerRef } from '@angular/core';
import * as i0 from "@angular/core";
export declare class CompilerService {
private readonly modules;
render(options: RendererOptions): Promise<ComponentRef<any>>;
resolveComponent(type: Type<any>, injector: Injector): Promise<{
component: Type<any>;
injector: Injector;
}>;
private renderComponent;
private resolveModuleInfo;
static ɵfac: i0.ɵɵFactoryDeclaration<CompilerService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CompilerService>;
}
export interface RendererOptions {
type: Type<any>;
inputs?: any;
container: ViewContainerRef;
}
export interface IDynamicModule {
/** Reference to the main component of the module */
component: Type<any>;
}