I'm trying to see if something is possible in angular.
I want to allow for a provider in app.module.ts based on a condition from a service.
So for example:
app.module.ts
@NgModule({
declarations, //etc
imports: [
BrowserModule, ' //etc
providers, //this should be empty unless True is returned from a service.
bootstrap: [AppComponent],
I have a service that will return a boolean. Based on that, I will set providers for a 3rd party tool.
Is this possible?