This rule is deprecated and will be removed in future versions. Explanation: There is no reason to forbid the use of $digest()
in general.
The scope's $digest() method shouldn't be used. You should prefer the $apply method.
The watchers-execution
rule can be configured to enforce the use of $apply()
or $digest()
.
This rule was introduced in eslint-plugin-angular 0.1.0