diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/$rootScope/infdig.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/$rootScope/infdig.ngdoc')
| -rw-r--r-- | docs/content/error/$rootScope/infdig.ngdoc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/content/error/$rootScope/infdig.ngdoc b/docs/content/error/$rootScope/infdig.ngdoc new file mode 100644 index 00000000..e36f1d69 --- /dev/null +++ b/docs/content/error/$rootScope/infdig.ngdoc @@ -0,0 +1,17 @@ +@ngdoc error +@name $rootScope:infdig +@fullName Infinite $digest Loop +@description + +This error occurs when the application's model becomes unstable and each `$digest` cycle triggers a state change and subsequent `$digest` cycle. +Angular detects this situation and prevents an infinite loop from causing the browser to become unresponsive. + +For example, the situation can occur by setting up a watch on a path and subsequently updating the same path when the value changes. + +``` +$scope.$watch('foo', function() { + $scope.foo = $scope.foo + 1; +}); +``` + +The maximum number of allowed iterations of the `$digest` cycle is controlled via TTL setting which can be configured via {@link ng.$rootScopeProvider $rootScopeProvider}. |
