UNPKG

ngx-endpoints

Version:

A library to dynamically load data from http endpoints / urls in angular

18 lines (17 loc) 635 B
import { OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; export declare class NgxEndpointService implements OnInit { private _http; constructor(_http: HttpClient); ngOnInit(): void; /** * Gets data via http client * @param endPointUrl url that will be requested */ getData<T>(endPointUrl: string, httpheaders: Object): Promise<T>; /** * Conversion method for relative dates in querystrings * @param endPointUrl return endpointurl with converted dates in querystring */ convertDatesInURL(endPointUrl: string, momentjsformat: string): string; }