Skip to content

Instantly share code, notes, and snippets.

@NishuGoel
Created May 16, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NishuGoel/9014a4d30982d63c656ca2a42c9845df to your computer and use it in GitHub Desktop.
Save NishuGoel/9014a4d30982d63c656ca2a42c9845df to your computer and use it in GitHub Desktop.
import {DataService} from './data.service'
import {LoggerService} from './logger.service';
export function logServiceFactory(dataService: DataService){
let loggerService: LoggerService = new LoggerService(dataService);
dataService.sendData("From the log service factory");
return loggerService;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment