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.
This commit is contained in:
Georgios Diamantopoulos
2013-10-21 12:35:44 +03:00
parent 9d24e5d8f6
commit 1ea3ae922f

View File

@@ -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;
}
///////////////////////////////////////////////////////////////////////////