我只想在特定服务器(私有网址)上使用带有角度4的hello.js。
有角度模块可以做到吗?
我尝试使用ngx-hellojs,但是chrome出现错误:
hello.all.js:1 Uncaught Error: only one instance of babel-polyfill is allowed
at Object.eval (hello.all.js:1)
at Object.1.2 (hello.all.js:1)
at o (hello.all.js:1)
at eval (hello.all.js:1)
at Object.347.1 (hello.all.js:1)
at o (hello.all.js:1)
at t (hello.all.js:1)
at eval (hello.all.js:1)
at eval (hello.all.js:1)
at Object.eval (hello.all.js:1)
感谢您的帮助。 :)
答案 0 :(得分:1)
使用ngx-hellojs
使用 npm install ngx-hellojs
安装编辑.angular-cli.json
{
//...
"apps": [
{
//...
"scripts": [
//...
"../node_modules/hellojs/dist/hello.all.js"
],
//...
}
],
//...
}