angular directive changes, still missing #2605

This commit is contained in:
Paulo Cesar
2014-08-02 13:59:17 -03:00
parent 6a5a3e07fd
commit b7dda17cc1
2 changed files with 269 additions and 230 deletions
+25 -13
View File
@@ -1031,22 +1031,34 @@ declare module ng {
(...args: any[]): IDirective;
}
interface IDirectiveLinkFn {
(
scope?: IScope,
instanceElement?: IAugmentedJQuery,
instanceAttributes?: IAttributes,
controller?: any,
transclude?: ITranscludeFunction
): void;
}
interface IDirective{
compile?:
(templateElement: IAugmentedJQuery,
templateAttributes: IAttributes,
transclude: ITranscludeFunction
) => any;
interface IDirectivePrePost {
pre?: IDirectiveLinkFn;
post?: IDirectiveLinkFn;
}
interface IDirectiveCompileFn {
(
templateElement?: IAugmentedJQuery,
templateAttributes?: IAttributes,
transclude?: ITranscludeFunction
): IDirectivePrePost;
}
interface IDirective {
compile?: IDirectiveCompileFn;
controller?: any;
controllerAs?: string;
link?:
(scope: IScope,
instanceElement: IAugmentedJQuery,
instanceAttributes: IAttributes,
controller: any,
transclude: ITranscludeFunction
) => void;
link?: IDirectivePrePost;
name?: string;
priority?: number;
replace?: boolean;