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)
This commit is contained in:
John Kurlak 2014-01-30 11:30:35 -08:00
parent 45d36a4a78
commit 05ec01901c

View File

@ -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;