Skip to content

Instantly share code, notes, and snippets.

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