aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/scope.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-05 14:52:34 -0800
committerIgor Minar2012-03-08 11:01:22 -0800
commite0ace15cd325b28f5c9a2a6f8e040dfd2701b1f4 (patch)
tree601642cc5b82f7388275a94761ce73e74161e57f /src/service/scope.js
parent6a98c52c847ecc620118f3ccfdd66c3956c0fb01 (diff)
downloadangular.js-e0ace15cd325b28f5c9a2a6f8e040dfd2701b1f4.tar.bz2
docs($rootScope): rename ttl to digestTtl + docs
Diffstat (limited to 'src/service/scope.js')
-rw-r--r--src/service/scope.js26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/service/scope.js b/src/service/scope.js
index a2de67e9..d5646008 100644
--- a/src/service/scope.js
+++ b/src/service/scope.js
@@ -25,6 +25,30 @@
* are expensive to construct.
*/
+
+/**
+ * @ngdoc object
+ * @name angular.module.ng.$rootScopeProvider
+ * @description
+ *
+ * Provider for the $rootScope service.
+ */
+
+/**
+ * @ngdoc function
+ * @name angular.module.ng.$rootScopeProvider#digestTtl
+ * @methodOf angular.module.ng.$rootScopeProvider
+ * @description
+ *
+ * Sets the number of digest iteration the scope should attempt to execute before giving up and
+ * assuming that the model is unstable.
+ *
+ * The current default is 10 iterations.
+ *
+ * @param {number} limit The number of digest iterations.
+ */
+
+
/**
* @ngdoc object
* @name angular.module.ng.$rootScope
@@ -37,7 +61,7 @@
function $RootScopeProvider(){
var TTL = 10;
- this.ttl = function(value) {
+ this.digestTtl = function(value) {
if (arguments.length) {
TTL = value;
}