angular-base64-download
Simple implementation of base64 download files for angularjs applications
Installation
Bower
$ bower install angular-base64-download
Embed it in your HTML:
NPM
$ npm install angular-base64-download
Embed it in your HTML:
Dependency injection
Inject angular-base64-download
module as a dependency into your app:
var app = angular
Usage
Example of minimum usage:
In controller:
angular;
Will download a file called "MyFileHello.txt" with content "hello".
That's all.
See ./demos
for interactive usage example.
Tests
To run the package's test, first install the dependencies, then run npm test
:
$ npm install --only=dev$ bower install
or
$ npm install
License
MIT License