fix(inputs): apply ng form classes (#18820)

This commit is contained in:
Manu MA
2019-07-17 17:46:22 +02:00
committed by GitHub
parent 7ae9303a97
commit 53179c475c
3 changed files with 18 additions and 12 deletions

View File

@ -1,5 +1,10 @@
import { HTMLStencilElement } from '../types/interfaces';
export const raf = (h: any) => {
const win = window as any;
return (win.__zone_symbol__requestAnimationFrame) ? win.__zone_symbol__requestAnimationFrame(h) : requestAnimationFrame(h);
};
export function proxyMethod(ctrlName: string, doc: Document, methodName: string, ...args: any[]) {
const controller = ensureElementInBody(ctrlName, doc);
return controller.componentOnReady()