using external JS libraries in my angular 2 project

前端 未结 2 1542
轮回少年
轮回少年 2020-11-28 05:45

I need to use this JS library in my angular 2 project

this question may be duplicate with me , but no answer worked for me

I tried to include the library as

2条回答
  •  一生所求
    2020-11-28 06:07

    Place all javascript, external css, images etc. in src/assets

    (will be compiled to build/assets)

    In your index.html:

    Then you can just use it like you describe. (declare var PrayTimes: any;)

提交回复
热议问题