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.
Root scope dirty check triggered by a child scope's apply #8184
Closed
Description
Most directives call $scope.$apply, which is currently poorly implemented in Angular. The call is proxied to $rootScope.$digest, which has the effect of dirty checking ALL the scopes.
As I'm in charge of hooking up the data onto the scopes, I already know what needs to be dirty checked and what not. If I've set up my data to flow inherently the same as the scopes, there should be an option inside Angular to tweak the default nasty dirty-checking behaviour.
This naive design decision has massive performance implications.
Metadata
Metadata
Assignees
Labels
No labels