number-cruncher
Version:
Calculate total time based on lines of input with numbers on the end.
13 lines (10 loc) • 379 B
text/typescript
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/internal/Observable';
()
export class LoadService {
constructor(private http: HttpClient) {}
getTxtFile(urlInput: string): Observable<string> {
return this.http.get(urlInput, { responseType: 'text' });
}
}