nwcell / ics.js

A browser firendly VCS file generator written entirely in javascript!!!!!!
MIT License
614 stars 258 forks source link

how can i use this library in angular 5 typescript #71

Open dfmorillov opened 4 years ago

dfmorillov commented 4 years ago

how can i use this library in angular 5 typescript?

I am trying to download an .ics format file using angular 5, how could I do it using this library? Thank you

blackfan23 commented 4 years ago

I don't think types are included @dfmorillov.

But you can use it now by adding

<script src="assets/external/ics.min.js"></script> <script src="assets/external/ics.deps.min.js"></script>

to your index html. Copy those two files to assets/external.

than in your file att the top add declare const cal: any

Just tried it with the sample code and it worked.