Last active
February 6, 2020 07:51
-
-
Save santoshyadavdev/d227435237434fa2ce79bd720f138608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppRoutingModule } from './app-routing.module'; | |
import { AppComponent } from './app.component'; | |
import { Condfig } from './shared/demo.config'; | |
import { configToken } from './shared/demo.token'; | |
export const configValue: Config = { | |
apiEndPoint: 'def.com', | |
timeout: 5000 | |
}; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
BrowserModule, | |
AppRoutingModule | |
], | |
providers: [{ | |
provide: configToken, useValue: configValue | |
}], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment