我正在迁移html和javaScript中的标头,如何在app.component.html
中引用此Java脚本文件?
我已经在脚本中的angular.json
中导入了此文件。
"scripts": [
"node_modules/jquery/dist/jquery.min.js","src/app/_utils/mainHeader.js"
]
如何在Angular 8中将js文件添加到component.html?
我正在迁移html和javaScript中的标头,如何在app.component.html
中引用此Java脚本文件?
我已经在脚本中的angular.json
中导入了此文件。
"scripts": [
"node_modules/jquery/dist/jquery.min.js","src/app/_utils/mainHeader.js"
]
如何在Angular 8中将js文件添加到component.html?