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 <gregory.petrosyan@gmail.com>
This commit is contained in:
Gregory Petrosyan
2013-09-18 14:40:59 +04:00
parent 6c7c46480d
commit 5266bc625f
+4 -1
View File
@@ -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;