mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
docs(angular): add slow computations content (#6904)
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user