Hi Ruchin,
This is because your apiService.isLogin is async. The router starts 'routing' only after the router-outlet is available.
what happens is, your route to `/someRoute`. Router-outlet is not in the template. nothing happens.
Afterward, your login result comes back, the outlet gets added to the view. there are no routing events, so nothing happens.
This kind of security is better solved with a routerGuard.
Regards
Sander