UNPKG

1.4 kBTypeScriptView Raw
1import { ApplicationRef, ComponentFactoryResolver, Injector, NgZone, ViewContainerRef } from '@angular/core';
2import { FrameworkDelegate } from '@ionic/core';
3export declare class AngularDelegate {
4 private zone;
5 private appRef;
6 constructor(zone: NgZone, appRef: ApplicationRef);
7 create(resolver: ComponentFactoryResolver, injector: Injector, location?: ViewContainerRef): AngularFrameworkDelegate;
8}
9export declare class AngularFrameworkDelegate implements FrameworkDelegate {
10 private resolver;
11 private injector;
12 private location;
13 private appRef;
14 private zone;
15 private elRefMap;
16 private elEventsMap;
17 constructor(resolver: ComponentFactoryResolver, injector: Injector, location: ViewContainerRef | undefined, appRef: ApplicationRef, zone: NgZone);
18 attachViewToDom(container: any, component: any, params?: any, cssClasses?: string[]): Promise<any>;
19 removeViewFromDom(_container: any, component: any): Promise<void>;
20}
21export declare const attachView: (zone: NgZone, resolver: ComponentFactoryResolver, injector: Injector, location: ViewContainerRef, appRef: ApplicationRef, elRefMap: WeakMap<HTMLElement, any>, elEventsMap: WeakMap<HTMLElement, () => void>, container: any, component: any, params: any, cssClasses: string[]) => any;
22export declare const bindLifecycleEvents: (zone: NgZone, instance: any, element: HTMLElement) => () => void;