UNPKG

jw-ng-forward

Version:

Temporary package. The default solution for those that want to write Angular 2.x style code in Angular 1.x

35 lines (34 loc) 1.38 kB
import { IModule } from 'angular'; export interface CompType { selector: string; controllerAs?: string; template?: any; templateUrl?: string; bindings?: any; transclude?: any; providers?: any[]; inputs?: string[]; outputs?: string[]; pipes?: any[]; directives?: any[]; require?: any; [key: string]: any; } export declare const componentHooks: { _after: any[]; _extendDDO: any[]; _beforeCtrlInvoke: any[]; _afterCtrlInvoke: any[]; after(fn: (target: any, name: string, injects: string[], ngModule: IModule) => any): void; extendDDO(fn: (ddo: any, target: any, name: string, injects: string[], ngModule: IModule) => any): void; beforeCtrlInvoke(fn: (caller: any, injects: string[], controller: any, ddo: any, $injector: any, locals: any) => any): void; afterCtrlInvoke(fn: (caller: any, injects: string[], controller: any, ddo: any, $injector: any, locals: any) => any): void; }; export declare function Component({ selector, controllerAs, template, templateUrl, bindings, transclude, providers, inputs, outputs, pipes, directives, require, }: CompType): (t: any) => void; export declare function View({ selector, template, templateUrl, pipes, directives, }: { selector?: string; template?: string; templateUrl?: string; pipes?: any[]; directives?: any[]; }): (t: any) => void;