TranslationHttpService
Defined in: src/services/translation-http.serivce.ts:20
Core service as abstraction layer for HTTP handling
Since
1.0.0
Author
Simon Kovtyk
Constructors
Constructor
ts
new TranslationHttpService(): TranslationHttpService;Returns
TranslationHttpService
Methods
getWithRef$()
ts
getWithRef$<T>(
httpClientRef,
scopeName,
httpOptions?): Observable<T>;Defined in: src/services/translation-http.serivce.ts:38
Gets translations with the provided HttpClient reference.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
httpClientRef | Readonly<HttpClient> | The HttpClient reference to use for the request. |
scopeName | string | readonly (string | null)[] | null | The scope name(s) for the translations. |
httpOptions? | HttpOptions<never, HttpHeadersOption, never> | Optional HttpOptions to customize the request. |
Returns
Observable<T>
An Observable of the requested translations.
Since
1.0.0
Author
Simon Kovtyk