Dart Documentationangular.coreScopeDigestTTL

ScopeDigestTTL class

Allows the configuration of Scope.$digest iteration maximum time-to-live value. Digest keeps checking the state of the watcher getters until it can execute one full iteration with no watchers triggering. TTL is used to prevent an infinite loop where watch A triggers watch B which in turn triggers watch A. If the system does not stabilize in TTL iteration then an digest is stop an an exception is thrown.

class ScopeDigestTTL {
 final num ttl;
 ScopeDigestTTL(): ttl = 5;
 ScopeDigestTTL.value(num this.ttl);
}

Constructors

new ScopeDigestTTL() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ScopeDigestTTL(): ttl = 5;

new ScopeDigestTTL.value(num ttl) #

ScopeDigestTTL.value(num this.ttl);

Properties

final num ttl #

final num ttl