squash! fix tabs

directive interface definition and tests
This commit is contained in:
Paulo Cesar
2014-08-08 12:24:43 -03:00
parent e6da97bb7d
commit 82447ac010
2 changed files with 27 additions and 24 deletions
+10 -9
View File
@@ -316,6 +316,7 @@ declare module ng {
// see http://docs.angularjs.org/api/ng.$rootScope.Scope
///////////////////////////////////////////////////////////////////////////
interface IScope {
[index: string]: any;
$apply(): any;
$apply(exp: string): any;
$apply(exp: (scope: IScope) => any): any;
@@ -1033,11 +1034,11 @@ declare module ng {
interface IDirectiveLinkFn {
(
scope?: IScope,
instanceElement?: IAugmentedJQuery,
instanceAttributes?: IAttributes,
controller?: any,
transclude?: ITranscludeFunction
scope: IScope,
instanceElement: IAugmentedJQuery,
instanceAttributes: IAttributes,
controller: any,
transclude: ITranscludeFunction
): void;
}
@@ -1048,13 +1049,13 @@ declare module ng {
interface IDirectiveCompileFn {
(
templateElement?: IAugmentedJQuery,
templateAttributes?: IAttributes,
transclude?: ITranscludeFunction
templateElement: IAugmentedJQuery,
templateAttributes: IAttributes,
transclude: ITranscludeFunction
): IDirectivePrePost;
}
interface IDirective{
interface IDirective {
compile?: IDirectiveCompileFn;
controller?: any;
controllerAs?: string;