How to call external javascript function in angular 5?

前端 未结 4 1556

I have downloaded a theme from this link. I have to define script and CSS in index.html file.

index.html (body section)


  

        
4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 05:49

    In Angular4, 5 project folder, there is .angular-cli.json file.

    In file, you will see

    "apps": [
      {
        "scripts": []
      }
    ]
    

    push your external js file path in the array.

提交回复
热议问题