From dba566a96d3c660e12249dcb6445dad19854da97 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 15 Oct 2013 11:28:47 -0700 Subject: docs($rootScope): better document infinite digest and ttl --- docs/content/error/rootScope/infdig.ngdoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs/content/error') diff --git a/docs/content/error/rootScope/infdig.ngdoc b/docs/content/error/rootScope/infdig.ngdoc index cffe4de2..137bc120 100644 --- a/docs/content/error/rootScope/infdig.ngdoc +++ b/docs/content/error/rootScope/infdig.ngdoc @@ -3,7 +3,8 @@ @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. +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. @@ -11,4 +12,6 @@ For example, the situation can occur by setting up a watch on a path and subsequ $scope.$watch('foo', function() { $scope.foo = $scope.foo + 1; }); -``` \ No newline at end of file +``` + +The maximum number of allowed iterations of the `$digest` cycle is controlled via TTL setting which can be configured via {@link api/ng.$rootScopeProvider $rootScopeProvider}. -- cgit v1.2.3