survey-angular-ui
Version:
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
22 lines (21 loc) • 907 B
TypeScript
import { ComponentFactoryResolver, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from "@angular/core";
import * as i0 from "@angular/core";
interface IDynamicComponent {
name: string;
data?: any;
default?: string;
}
export declare class DynamicComponentDirective implements OnChanges {
private containerRef;
private templateRef;
private resolver;
constructor(containerRef: ViewContainerRef, templateRef: TemplateRef<unknown>, resolver: ComponentFactoryResolver);
component: IDynamicComponent;
private componentInstance;
ngOnChanges(changes: SimpleChanges): void;
createComponent(): void;
updateComponentData(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicComponentDirective, "[component]", never, { "component": "component"; }, {}, never>;
}
export {};