My code:
ngOnInit() {
this.activatedRoute.params.subscribe((params: Params) => {
// do stuff
})
this.activatedRoute.data.subscribe((data: any) => {
// do stuff
})
}
My question is ... do I need to unsubscribe from these in ngOnDestroy?
As a matter of habit I always unsub but not sure if it is necessary here.
thanks