In my app
I have loginComponent, UserService
By default user will go to login page
There he can type his credentials and I am making an API call and using the retrieved userdata to populate one property in the service class
After this, I am redirecting the user to the dashboard (Now service is working fine. It has user data )
But now if I go to browse URL bar and manually change the URL to login the app is loading loginComponent and data inside service has lost. (probably creating new instance of service)
Is this a bug...? or can we get rid of this.