0.0.18 • Published 7 years ago

save-blob-component v0.0.18

Weekly downloads
4
License
MIT
Repository
github
Last release
7 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

7 years ago

0.0.17

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago