File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ If the subscription callback from an observables that does not eventually comple
3434the destroyed component cannot be garbage collected thus resulting in a memory leak.
3535Therefore you should always unsubscribe in that case.
3636
37- ### Observables that eventually complete
3837Observables that don't eventually complete (for example an observable emitting a value each second) should be cancelled always,
3938since the callback logic from the destroyed component still runs (infinitely) in the background otherwise.
4039
@@ -45,7 +44,7 @@ The Angular HttpClient creates an observable that eventually completes. Therefor
4544For observables from the `` ActivatedRoute `` you do not have to unsubscribe manually.
4645
4746### Angular Router events
48- For Angular Router events (`` NavigationStart `` , `` NavigationEnd `` , ...) you have to manually unsubscribe.
47+ For Angular Router events (`` NavigationStart `` , `` NavigationEnd `` , ...) you may have to manually unsubscribe.
4948
5049### Overview
5150When you should unsubscribe when the component gets destroyed.
You can’t perform that action at this time.
0 commit comments