Merge pull request #5742 from lightswitch05/patch-1

Angularjs: `IInjectorService.get` has an optional 2nd param.
This commit is contained in:
Masahiro Wakame
2015-09-16 21:52:32 +09:00
+1 -1
View File
@@ -1693,7 +1693,7 @@ declare module angular {
interface IInjectorService {
annotate(fn: Function): string[];
annotate(inlineAnnotatedFunction: any[]): string[];
get<T>(name: string): T;
get<T>(name: string, caller?: string): T;
has(name: string): boolean;
instantiate<T>(typeConstructor: Function, locals?: any): T;
invoke(inlineAnnotatedFunction: any[]): any;