ngx-endpoints
Version:
A library to dynamically load data from http endpoints / urls in angular
21 lines (20 loc) • 844 B
TypeScript
import { NgxEndPoint } from './ngx-endpoints';
import { NgxEndPointData } from './ngx-endpoint.format';
import { NgxEndpointService } from './ngx-endpoints.service';
export declare class NgxEndPointDataProviderService<T extends NgxEndPoint<any>> {
private endpointservice;
endpoints: T[];
constructor(endpointservice: NgxEndpointService);
/**
* Creates an NgxEndPoint and stores it in an array for proceeding
* @param NgxEndPointData endpointitem (basic json object)
* @returns the created NgxEndPoint for further proceeding
*/
addEndPoint(endpointitem: NgxEndPointData): NgxEndPoint<any>;
/**
* Deletes a certain NgxEndPoint from endpoints array
* Stops running live requests
* @param endPointId Id of the specific NgxEndPoint
*/
destroyEndPoint(endPointId: number): void;
}