Write the above code into a js file, then inject this module ngLoadScript into your current application, and then use type="text/javascript-lazy" in the <script> tag.
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) )
Found on stack. Personal test is useful.
Write the above code into a js file, then inject this module ngLoadScript into your current application, and then use type="text/javascript-lazy" in the <script> tag.
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) )