From 1ea3ae922f4cd16aa1d607b5beae448714aa17c4 Mon Sep 17 00:00:00 2001 From: Georgios Diamantopoulos Date: Mon, 21 Oct 2013 12:35:44 +0300 Subject: [PATCH] NG directives: fixes Allow functions to be defined for template/templateUrl and array notation in controller There's not a more elegant solution that I know of until we get structs in TS anyway. --- angularjs/angular.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index be2465ff74..145696286b 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -668,15 +668,15 @@ declare module ng { interface IDirective{ priority?: number; - template?: string; - templateUrl?: string; + template?: any; + templateUrl?: any; replace?: boolean; transclude?: any; restrict?: string; scope?: any; link?: Function; compile?: Function; - controller?: Function; + controller?: any; } ///////////////////////////////////////////////////////////////////////////