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

pull/6937/head
J. Degand 3 months ago committed by GitHub
parent d73145661a
commit 5a0d23dcf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      src/data/roadmaps/angular/content/slow-computations@yxUtSBzJPRcS-IuPsyp-W.md

@ -1 +1,8 @@
# 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)
Loading…
Cancel
Save