Skip to content

Instantly share code, notes, and snippets.

@jsinglet
Created September 5, 2019 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsinglet/f70931458ef0bf120b573277be0d97fe to your computer and use it in GitHub Desktop.
Save jsinglet/f70931458ef0bf120b573277be0d97fe to your computer and use it in GitHub Desktop.
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