Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2. import { Router } from '@angular/router';
  3. import { signatureConfigurationServiceFactory } from '../../environments/services.factories';
  4. import { RestService } from '.';
  5.  
  6. @Injectable({
  7. providedIn: 'root',
  8. useFactory: signatureConfigurationServiceFactory,
  9. deps: [Router, RestService]
  10. })
  11. export class SignatureConfigurationService {
  12. router: Router;
  13. restService: RestService;
  14.  
  15. constructor(router: Router, restService: RestService) {
  16. this.router = router;
  17. this.restService = restService;
  18. }
  19.  
  20. // ...
  21. }
  22.  
  23. import { Router } from '@angular/router';
  24. import { RestService } from '../app/services';
  25. import { SignatureConfigurationService } from '../app/services/signature-configuration.service';
  26.  
  27. export let signatureConfigurationServiceFactory = (router: Router, restService: RestService) => {
  28. return new SignatureConfigurationService(router, restService);
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement