import { Injectable } from '@angular/core' ; import { AppConsts } from '@shared/AppConsts' ; import { FileDto } from '@shared/service-proxies/service-proxies' ; @ Injectable ( ) export class FileDownloadService { downloadTempFile ( file ) { const url = AppConsts . remoteServiceBaseUrl + '/File/DownloadTempFile?fileType=' + file . fileType + '&fileToken=' + file . fileToken + '&fileName=' + file . fileName ; location . href = url ; } }