DownloadService

DownloadService

Service for downloading files in browser

Constructor

new DownloadService()

Source:

Constructor of DownloadService

Classes

DownloadService

Methods

(async) download(data, strFileName, strMimeType) → {Promise.<void>}

Source:

Download file

Parameters:
Name Type Description
data string | Object

Downloaded data

strFileName string

Name of downloaded file

strMimeType string

Mime type of downloaded file

Returns:
  • Promise resolved after downloading file
Type
Promise.<void>