ng-modals
Version:
Make a modal in angular extremely easily with ng-modals. Installation to have a modal pop up is quick and easy.
24 lines (23 loc) • 825 B
TypeScript
import { OnInit, AfterViewInit, OnChanges, EventEmitter, ComponentFactoryResolver, ViewContainerRef, TemplateRef } from '@angular/core';
export declare class NgModalsDirective {
containers: ViewContainerRef;
constructor(containers: ViewContainerRef);
}
export declare class NgModalsComponent implements OnInit, AfterViewInit, OnChanges {
private componentFactoryResolver;
options: any;
condition: any;
close: EventEmitter<{}>;
css: {};
viewIsInit: boolean;
modalDirective: NgModalsDirective;
container: TemplateRef<any>;
initialClick: boolean;
onclick(targetElement: any): void;
constructor(componentFactoryResolver: ComponentFactoryResolver);
ngOnInit(): void;
ngOnChanges(): void;
ngAfterViewInit(): void;
loadComponent(): void;
closeModal(): void;
}