How to load external scripts dynamically in Angular?

前端 未结 15 1053
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 06:48

I have this module which componentize the external library together with additional logic without adding the

15条回答
  •  闹比i
    闹比i (楼主)
    2020-11-22 07:06

    In my case, I've loaded both the js and css visjs files using the above technique - which works great. I call the new function from ngOnInit()

    Note: I could not get it to load by simply adding a

提交回复
热议问题