@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}. 70c45878b41cb46a577cd2'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/example/personalLog/personalLog.js
blob: c22b8702e4a65a0d08221e54736c682b20aef85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72