Project

General

Profile

« Previous | Next » 

Revision 56114

[Trunk|Library]

htmlProjectReport.service.ts: set the return type as text (Angular 7 change)

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/htmlProjectReport/htmlProjectReport.service.ts
1 1
import {Injectable} from '@angular/core';
2
import {Http, Response} from '@angular/http';
3 2
import {HttpClient} from "@angular/common/http";
4
import {Observable}     from 'rxjs';
5 3

  
6
import {map} from "rxjs/operators";
7

  
8 4
@Injectable()
9 5
export class HtmlProjectReportService {
10 6

  
......
33 29

  
34 30
        let key = url;
35 31

  
36
        return this.http.get(url)
37
                    .pipe(map(res => {
38
                      let resText:any = res;
39
                      return resText.text();
40
                    }));
32
        return this.http.get(url,{responseType: 'text'});
41 33
    }
42 34
}

Also available in: Unified diff