fix(demos): fixes angular

This commit is contained in:
Manu Mtz.-Almeida
2018-03-13 21:22:49 +01:00
parent 9a0755a268
commit f398b3a945
86 changed files with 18 additions and 1887 deletions

View File

@ -2,7 +2,7 @@
export function proxyMethod(ctrlName: string, methodName: string, ...args: any[]) {
const controller = ensureElementInBody(ctrlName);
return controller.componentOnReady()
.then(() => (controller as any)[methodName].apply(args));
.then(() => (controller as any)[methodName].apply(controller, args));
}
export function ensureElementInBody(elementName: string) {