I know, this question may sound duplicate and I have tried everything found on stackover flow unable to resolve this problem, so please bear with me
To make
Use setTimeout() function in constructor to assign service.
constructor(private injector: Injector) { setTimeout(() => { this.loginService = this.injector.get(LoginService); }) }
Try this and revert back if you face any issue.