Skip to content

Instantly share code, notes, and snippets.

@santoshyadavdev
Last active February 6, 2020 07:51
Show Gist options
  • Save santoshyadavdev/d227435237434fa2ce79bd720f138608 to your computer and use it in GitHub Desktop.
Save santoshyadavdev/d227435237434fa2ce79bd720f138608 to your computer and use it in GitHub Desktop.
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