讲上述代码写成一个js文件,然后将此module ngLoadScript注入到你当前的应用中,然后在<script>标签中使用type="text/javascript-lazy"即可。
This angular module have been created by @subudeepak(https://github.com/subudeepak) based on the code posted by @endorama (https://github.com/endorama)
* (based upon the code
* posted by @olostan (https://github.com/olostan) )
在stack上找到的。亲测有用。
讲上述代码写成一个js文件,然后将此module ngLoadScript注入到你当前的应用中,然后在<script>标签中使用type="text/javascript-lazy"即可。
This angular module have been created by @subudeepak(https://github.com/subudeepak) based on the code posted by @endorama (https://github.com/endorama)
* (based upon the code
* posted by @olostan (https://github.com/olostan) )