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.
perf(Scope): $postDigestWatch #5828
Open
Description
Currently, directives that do nothing more than watch an expression and update the dom in response use $watch (for the most part).
This subjects them to repeated dirty checks every $digest cycle and might even trigger multiple dom updates.
Since they will never update the scope themselves, there should be another kind of $watch that will execute exactly once after the scope has stabilized in a $digest.