Topic: How can I use angularx-social-login in MDB

Leong pro asked 5 years ago


I try to user angularx-social-login. Following the tutorial, I need to add provider in app. modules.ts file. The problem is that the providers have been assigned to MDBSpinningPreloader. So I cannot add the following code in it. provide: AuthServiceConfig, useFactory: provideConfig

Can anyone tell me how to do it? Thanks.


Damian Gemza staff answered 5 years ago


Dear Leong,

Please note, that the providers are the array, so you'll able to put there a lot of classes.

Your providers in the app.module.ts should look like below:

providers: [
    MDBSpinningPreloader,
    {
      provide: AuthServiceConfig,
      useFactory: provideConfig
    }
  ],

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.1
  • Device: notebook
  • Browser: chrome
  • OS: mac
  • Provided sample code: No
  • Provided link: No