1 min read 64 words Updated Sep 24, 2026 Created Sep 24, 2026
#angular#review

Personal mistakes and learnings on Angular

Avoid using effect()

Clean up subscribe

When components are destroyed, subscriptions might remain and thus cause memory leaks.

ChangeDetectionStrategy on Push

Avoid ngOnInit if alternatives are possible

It is not necessary to use ngOnInit e. g. for data fetching, when we can use it in a reactive way, using toSignal().

BehaviourSubject -> signals