mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00

committed by
Mike Hartington

parent
f16b118794
commit
f56fea6a1f
@ -1,3 +1,5 @@
|
||||
import { HTMLStencilElement } from '@ionic/core';
|
||||
|
||||
// A proxy method that initializes the controller and calls requested method
|
||||
export function proxyMethod(tag: string, method: string, ...opts: any[]): Promise<any> {
|
||||
return initController(tag).then((ctrl: any) => ctrl[method].apply(ctrl, opts));
|
||||
|
Reference in New Issue
Block a user