Skip to content

Instantly share code, notes, and snippets.

@santoshyadavdev
Last active February 6, 2020 07:51
Show Gist options
  • Save santoshyadavdev/b1508bce0d21a1c7f0421a2678896af1 to your computer and use it in GitHub Desktop.
Save santoshyadavdev/b1508bce0d21a1c7f0421a2678896af1 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { EmployeeRoutingModule } from './employee-routing.module';
import { EmployeeComponent } from './employee.component';
import { Config } from '../shared/demo.config';
import { configToken } from '../shared/demo.token';
export const configValue: Config = {
apiEndPoint: 'abc.com',
timeout: 3000
};
@NgModule({
declarations: [EmployeeComponent],
imports: [
CommonModule,
EmployeeRoutingModule
],
providers: [{
provide: configToken, useValue: configValue
}]
})
export class EmployeeModule {
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment