Merge pull request #1560 from michelsalib/angular-js-patch-01

Angular IModule::provider can accept a provider object as second argument
This commit is contained in:
Basarat Ali Syed
2014-01-18 03:06:00 -08:00
+4
View File
@@ -105,6 +105,7 @@ declare module ng {
filter(object: Object): IModule;
provider(name: string, serviceProviderConstructor: Function): IModule;
provider(name: string, inlineAnnotadedConstructor: any[]): IModule;
provider(name: string, providerObject: auto.IProvider): IModule;
provider(object: Object): IModule;
run(initializationFunction: Function): IModule;
run(inlineAnnotadedFunction: any[]): IModule;
@@ -806,6 +807,9 @@ declare module ng {
// AUTO module (angular.js)
///////////////////////////////////////////////////////////////////////////
export module auto {
interface IProvider {
$get: any;
}
///////////////////////////////////////////////////////////////////////
// InjectorService