Created
September 5, 2019 17:57
-
-
Save jsinglet/f70931458ef0bf120b573277be0d97fe 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 { LoginService, getLoginService } from './login.service'; | |
import { TenantService } from '../tenant/tenant.service'; | |
import { Client1loginService } from './client1login.service'; | |
import { Client2loginService } from './client2login.service'; | |
@NgModule({ | |
declarations: [], | |
imports: [ | |
CommonModule | |
], | |
providers: [ | |
{ | |
provide: LoginService, | |
useFactory: getLoginService, | |
deps: [TenantService, Client1loginService, Client2loginService] | |
} | |
] | |
}) | |
export class LoginModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment