UNPKG

leaf-framework

Version:
21 lines (20 loc) 547 B
import { Http } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; export declare abstract class JsonFileService { protected http: Http; constructor(http: Http); /** * Load the path of the json file */ abstract getFilePath(): string; /** * Load the data defined in the json file */ getData(): Observable<any>; /** * Extract data that arrives from the response * @param res the response */ private extractData(res); }