You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Include the <code>fileSaver</code> module to yor project;
21
+
22
+
- Pass <code>SaveAs</code> service as a dependency;
23
+
24
+
- Invoke <code>SaveAs.saveFile()</code> with following arguments:
25
+
26
+
-`data` - data, represented as a string, an array or a [Blob object](https://developer.mozilla.org/en/docs/Web/API/Blob);
27
+
-`filename`
28
+
-`options` - set of options for the [Blob constructor](https://developer.mozilla.org/en/docs/Web/API/Blob) optional parameter if Blob object is passed as first argument)
29
+
30
+
##Demo
31
+
32
+
[Demo on the github project page](http://alferov.github.io/angular-file-saver/#demo)
0 commit comments