"Angular does not create the component if it is already present in the DOM. It reuses the component instance. This implies that the ngOnInit life cycle hook is not invoked when the user navigates to the component again."
Based on this, I cannot understand why ngOnInit
lifecyle method is invoked again if it contains the .subscribe
method when we retrieve the route parameters.
Could anyone help me with this?
Thank you.