0.0.18 • Published 6 years ago

save-blob-component v0.0.18

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Save Blob

A simple blob saver. This discription is under construction.

Installation

Just place the following line somewere in your index.html:

<script src='https://unpkg.com/save-blob-component@0.0.18/dist/saveblobcomponent.js'></script>

Angular/Ionic Framework

You should import CUSTOMELEMENTS_SCHEMA in your _app.module.ts file:

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

Usage

Then in your page markup file (i.e. my-page.html, or contacts.html or whatever markup file you need) call to component like this:

<file-downloader url="http://example.com/some-image.jpg" fileName="some image" opts="{method:'get', headers: [{'Access-Control-Allow-Origin':'*'}]}"></file-downloader>

Parameters: url: an url you want to download file from fileName: the name of a file. File will be placed to your specified location with this name * opts: request options such as method and request headers. You can provide authentication information like access token if needed

Simpliest form (without options) is:

<file-downloader url="http://example.com/some-image.jpg" fileName="some image"></file-downloader>

To be continued

0.0.18

6 years ago

0.0.17

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago