File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 25
25
* are expensive to construct.
26
26
*/
27
27
28
+
29
+ /**
30
+ * @ngdoc object
31
+ * @name angular.module.ng.$rootScopeProvider
32
+ * @description
33
+ *
34
+ * Provider for the $rootScope service.
35
+ */
36
+
37
+ /**
38
+ * @ngdoc function
39
+ * @name angular.module.ng.$rootScopeProvider#digestTtl
40
+ * @methodOf angular.module.ng.$rootScopeProvider
41
+ * @description
42
+ *
43
+ * Sets the number of digest iteration the scope should attempt to execute before giving up and
44
+ * assuming that the model is unstable.
45
+ *
46
+ * The current default is 10 iterations.
47
+ *
48
+ * @param {number } limit The number of digest iterations.
49
+ */
50
+
51
+
28
52
/**
29
53
* @ngdoc object
30
54
* @name angular.module.ng.$rootScope
37
61
function $RootScopeProvider ( ) {
38
62
var TTL = 10 ;
39
63
40
- this . ttl = function ( value ) {
64
+ this . digestTtl = function ( value ) {
41
65
if ( arguments . length ) {
42
66
TTL = value ;
43
67
}
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ describe('Scope', function() {
191
191
192
192
it ( 'should prevent infinite recursion and print watcher expression' , function ( ) {
193
193
module ( function ( $rootScopeProvider ) {
194
- $rootScopeProvider . ttl ( 100 ) ;
194
+ $rootScopeProvider . digestTtl ( 100 ) ;
195
195
} ) ;
196
196
inject ( function ( $rootScope ) {
197
197
$rootScope . $watch ( 'a' , function ( ) { $rootScope . b ++ ; } ) ;
You can’t perform that action at this time.
0 commit comments