This service loads a script/style file programmatically, while also keeping track of loaded files to avoid loading them multiple times.
Import AsyncModule
into your app:
Inject LazyLoaderService
into your component/service and call loadScript()
or loadStyle()
: