From 5a0d23dcf171d54c90832da896cf562948daedae Mon Sep 17 00:00:00 2001 From: "J. Degand" <70610011+jdegand@users.noreply.github.com> Date: Sun, 1 Sep 2024 07:46:00 -0400 Subject: [PATCH] docs(angular): add slow computations content (#6904) --- .../content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/angular/content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md b/src/data/roadmaps/angular/content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md index 93cd4e78f..ed2073c06 100644 --- a/src/data/roadmaps/angular/content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md +++ b/src/data/roadmaps/angular/content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md @@ -1 +1,8 @@ -# Slow Computations \ No newline at end of file +# Slow Computations + +On every change detection cycle, Angular synchronously evaluates all template expressions in components based on their detection strategy and executes the `ngDoCheck`, `ngAfterContentChecked`, `ngAfterViewChecked`, and `ngOnChanges` lifecycle hooks. To remove slow computations, you can optimize algorithms, cache data with pure pipes or memoization, and limit lifecycle hook usage. + +Visit the following resources to learn more: + +- [@official@Angular Official Docs - Slow Computations](https://angular.dev/best-practices/slow-computations) +- [@article@Angular Performance Optimization](https://davembush.medium.com/angular-performance-optimization-5ec630d2b8f1) \ No newline at end of file