mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #8310 from smayes5/fix-oclazyload
Fix oclazyload to Resolve Issue #7477
This commit is contained in:
@@ -89,7 +89,7 @@ angular.module('app').controller(['$ocLazyLoadProvider', function ($ocLazyLoad:
|
||||
'testModule2.js'
|
||||
]);
|
||||
|
||||
$ocLazyLoad.inject('testModule');
|
||||
var promise: ng.IPromise<any> = $ocLazyLoad.inject('testModule');
|
||||
|
||||
$ocLazyLoad.toggleWatch(true);
|
||||
}]);
|
||||
}]);
|
||||
|
||||
Vendored
+2
-2
@@ -43,7 +43,7 @@ declare module oc {
|
||||
* Injects a module with the associated name into Angular. Useful for manual injection when loading through RequireJS, SystemJS, etc. Useful in
|
||||
* conjunction with the toggleWatch() method.
|
||||
*/
|
||||
inject(moduleName: string|string[]): boolean;
|
||||
inject(moduleName: string|string[]): ng.IPromise<any>;
|
||||
|
||||
/**
|
||||
* Enables or disables watching Angular for new modules. Useful in conjunction with the inject() method. Make sure to not keep the watch enabled
|
||||
@@ -146,4 +146,4 @@ declare module angular {
|
||||
*/
|
||||
module(name: string, requires?: (string|oc.IModuleConfig)[], configFn?: Function): IModule;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user