UNPKG

@hardpool/js-bridge

Version:

Bridge between pure vanilla javascript and angular. Expose selected methods of angular component on javascript window object and call them from external javascript application. Making angular app plugable/co-exist with other front end app.

8 lines (7 loc) 294 B
import { NgZone } from '@angular/core'; export declare class JsBridgeService { private zone; constructor(zone: NgZone); exposeMethod(classRef: any, namespace: string, fnName: string[] | string): void; executeMethod(namespace: string, methodName: string, ...args: any[]): any; }