Is it possible to generate zip file and download in Angular 4?

前端 未结 2 1217
南旧
南旧 2020-12-11 11:36

I am beginner in Angular 4. I have refer lots of Links for generate Zip file but I can not get proper solution.
Is it possible to generate Zip file in Angu

2条回答
  •  余生分开走
    2020-12-11 12:14

    You can use any JS library in Angular. So for example you can use JSzip and then just:

    import * as JSZip from 'jszip';
    

    And now you will have access to this library methods. You can read more about using pure JS libs in angular. There is quite a lot of information about it and even clear instructions how to do it and use properly. I think it will be better if you dive in into this subject more instead of getting clear instruction step by step how to do it. You will learn more and if you will have such a problem in future you will solve it easily. I hope this suggestion will help you.

提交回复
热议问题