错误:无法在client-src / app / shared / services / touch-systems.service.ts中解析TouchSystemsService的所有参数:([object Object],?,[object Object])。< / p>
这是我的服务:
export class TouchSystemsService extends BehaviorSubject{
baseUrl: string ;
constructor(public http: HttpClient, private apiEndPoint: string, private
configService: ConfigService) {
super(null);
this.baseUrl = '/api';
}
public fetchById(id: number, state?: State): Observable<any>
{
if (!state) {
let options = this.CreateHeaders();
return this.http.get<any>(`${this.baseUrl}/${this.apiEndPoint}/${id}`,
options);
}
const queryStr = `${toDataSourceRequestString(state)}`;
const hasGroups = state.group && state.group.length;
let options = this.CreateHeaders();
let result = this.http.get<any>(`${this.baseUrl}/${this.apiEndPoint}/${id}?
${queryStr}`, options);
return result;
}
这是一项扩展上述服务的服务
export class SizeService extends TouchSystemsService {
dataResult: GridDataResult;
constructor(http: HttpClient, configService: ConfigService) {
super(http, 'size', configService);
}
public read(id:number): Observable<GridDataResult> {
return this.fetchById(id);
}
我正在使用角度版Angular:5.2.10