Last active
February 6, 2020 07:52
-
-
Save santoshyadavdev/b0d584525028d3f3b8ec2fbfa5a520c5 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 { 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