This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
"Self only" $scope.$digest() (ie without digesting child scopes) #15308
Open
Description
Feature request for 1.x... Something like
$scope.$digest(/*selfOnly*/true)
which, when optional parameter selfOnly
is true, only digests the $scope
and not its children. My motivation is explained here.
Here's another use case. In fact using Vahan's approach is even better, since it would solve my use case
$scope.$skipChildWatchers = true;
$scope.$digest();
$scope.$skipChildWatchers = false;
....but also allow for his pauseWatchers
directive to be easily implemented, which solves #5301, another issue in which I have great interest.