Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
73a84aeb
Commit
73a84aeb
authored
Dec 03, 2018
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Resources/views/common.ts.twig
View file @
73a84aeb
...
...
@@ -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
>
,
...
...
src/Resources/views/metadata.ts.twig
View file @
73a84aeb
...
...
@@ -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
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment