Project

General

Profile

« Previous | Next » 

Revision 53675

searchDownload.component: CSV Download changed for search pages - link (<a> tag) added in document when service request succeeds.

View differences:

reports.service.ts
15 15
     var headers = new Headers();
16 16
     headers.append('responseType', 'arraybuffer');
17 17
     return this.http.get(url)
18
               .map(res => new Blob([res['_body']], { type: 'text/csv' }));
18
                .map(res => new Blob([res['_body']], { type: 'text/csv' }));
19 19
   }
20 20
   getCSVResponse(url: string){
21 21
     var headers = new Headers();

Also available in: Unified diff