如何以角度动态加载外部脚本?
<script>
import 'http://external.com/path/file.js'//import '../js/file.js'@Component({ selector: 'my-app', template: ` <script src="http://iknow.com/this/does/not/work/either/file.js"></script> <div>Template</div>`})export class MyAppComponent {...}
import
侃侃尔雅