79607094

Date: 2025-05-05 14:21:29
Score: 0.5
Natty:
Report link

If you don't use the environment file, you can also inject it like this:

app.module.ts

imports: [
  NgxStripeModule.forRoot()
]

app.component.ts

constructor(
   private yourConfigService: ConfigLoaderService)
  {
      injectStripe(this.yourConfigService.stripe?.publishableKey);
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pavel M.