From 05ec01901cc2a28783099ce0f7f0d412ca9cf5ee Mon Sep 17 00:00:00 2001 From: John Kurlak Date: Thu, 30 Jan 2014 11:30:35 -0800 Subject: [PATCH] Added has() method to auto.IInjectorService Angular added the has() method to $injector in version 1.2 (see: https://github.com/angular/angular.js/blob/g3_v1_2/src/auto/injector.js) --- angularjs/angular.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index f3e7dc0001..1654e02ef5 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -821,7 +821,8 @@ declare module ng { interface IInjectorService { annotate(fn: Function): string[]; annotate(inlineAnnotadedFunction: any[]): string[]; - get (name: string): any; + get(name: string): any; + has(name: string): boolean; instantiate(typeConstructor: Function, locals?: any): any; invoke(inlineAnnotadedFunction: any[]): any; invoke(func: Function, context?: any, locals?: any): any;