i would like to know if it is possible to get a variable from my component and use it in my module. In this case i'm configuring a stripe checkout payment with ngx-stripe, this library requires the publish key from stripe like this:
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxStripeModule.forRoot('***your-stripe-publishable-key***'), //<-- here i would like to insert the variable that comes from component.
LibraryModule
],
providers: [],
bootstrap: [AppComponent]
})
This publish key is something that i have stored in my db for each user... so... how can i do it? thank you in advance.