From 5266bc625f683399960c49eee52542d7938dfc22 Mon Sep 17 00:00:00 2001 From: Gregory Petrosyan Date: Wed, 18 Sep 2013 14:40:48 +0400 Subject: [PATCH] Add $watchCollection(obj, listener) API to angular.d.ts https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js#L362 Signed-off-by: Gregory Petrosyan --- angularjs/angular.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index d0b24fda36..c44f3408e4 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -208,7 +208,10 @@ declare module ng { $watch(watchExpression: string, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function; $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: boolean): Function; $watch(watchExpression: (scope: IScope) => any, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function; - + + $watchCollection(watchExpression: string, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + $watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + $parent: IScope; $id: number;