docs(angular): add slow computations content (#6904)

This commit is contained in:
J. Degand
2024-09-01 12:46:00 +01:00
committed by GitHub
parent d73145661a
commit 5a0d23dcf1
@@ -1 +1,8 @@
# Slow Computations
# 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)