Commit 73a84aeb authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

N'injecte pas AbstractAPIService.

Le tag @Injectable n'est pas hérité mais pris en compte immédiatement.
parent 46445c1d
......@@ -2,7 +2,6 @@
{% block content %}
import { HttpClient, HttpResponseBase } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { forkJoin, Observable } from 'rxjs';
/**
......@@ -339,7 +338,6 @@ export interface APIService<API extends APIMeta> {
/**
* Implémentation de base d'une api
*/
@Injectable()
export abstract class AbstractAPIService<
API extends APIMeta,
MR extends APIMetadataRegistry<API>,
......
......@@ -124,7 +124,16 @@ export class AppRepositories implements APIRepositoryRegistry<AppAPI> {
* Le service d'API
*/
@Injectable()
export class AppAPIService extends AbstractAPIService<AppAPI, AppMetadata, AppRepositories> {}
export class AppAPIService extends AbstractAPIService<AppAPI, AppMetadata, AppRepositories> {
public constructor(
metadata: AppMetadata,
repositories: AppRepositories,
cache: AbstractResourceCache,
client: HttpClient
) {
super(metadata, repositories, cache, client);
}
}
/* Provider factories */
{% for repo in repositories %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment