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