Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8f329ff

Browse files
oojerryooIgorMinar
authored andcommitted
fix(closure): add type definition for Scope#$watchCollection
Closes #5475
1 parent 864b259 commit 8f329ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

closure/angular.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,9 @@ angular.Module.requires;
762762
* $parent: angular.Scope,
763763
* $root: angular.Scope,
764764
* $watch: function(
765-
* (string|Function), (string|Function)=, boolean=):function()
765+
* (string|Function), (string|Function)=, boolean=):function(),
766+
* $watchCollection: function(
767+
* (string|Function), (string|Function)=):function()
766768
* }}
767769
*/
768770
angular.Scope;
@@ -834,6 +836,13 @@ angular.Scope.$root;
834836
*/
835837
angular.Scope.$watch = function(exp, opt_listener, opt_objectEquality) {};
836838

839+
/**
840+
* @param {string|Function} exp
841+
* @param {(string|Function)=} opt_listener
842+
* @return {function()}
843+
*/
844+
angular.Scope.$watchCollection = function(exp, opt_listener) {};
845+
837846
/**
838847
* @typedef {{
839848
* currentScope: angular.Scope,

0 commit comments

Comments
 (0)