Skip to content

Commit

Permalink
fix: fix DI compatible lvy (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Apr 19, 2020
1 parent 07e59fb commit 6f9bba5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/theme/src/services/http/http.decorator.ts
@@ -1,11 +1,19 @@
// tslint:disable: only-arrow-functions
import { HttpHeaders } from '@angular/common/http';
import { Inject, Injector } from '@angular/core';
import { Inject, Injectable, Injector } from '@angular/core';
import { ACLService } from '@delon/acl';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { Observable, throwError } from 'rxjs';
import { _HttpClient } from './http.client';

/**
* Every http decorator must be based on `BaseAPI`, Like this:
* ```ts
* \@Injectable()
* class DataService extends BaseApi {}
* ```
*/
@Injectable()
export abstract class BaseApi {
constructor(@Inject(Injector) protected injector: Injector) {}
}
Expand Down

0 comments on commit 6f9bba5

Please sign in to comment.