Interface LazyLoaderServiceInterface
Hierarchy
-
LazyLoaderServiceInterface
Methods
loadBundle
- loadBundle(bundle: { module?: undefined | string; nomodule?: undefined | string }): Promise<Event | undefined>
-
Parameters
-
bundle: { module?: undefined | string; nomodule?: undefined | string }
-
Optional module?: undefined | string
-
Optional nomodule?: undefined | string
Returns Promise<Event | undefined>
loadScript
- loadScript(options: { attributes?: { key: string; value: any }[]; bundleType?: BundleType; src: string }): Promise<Event>
-
Parameters
-
options: { attributes?: { key: string; value: any }[]; bundleType?: BundleType; src: string }
-
Optional attributes?: { key: string; value: any }[]
-
Optional bundleType?: BundleType
-
src: string
Returns Promise<Event>
Load a javascript bundle (module and nomodule pair)
eg:
lazyLoaderService.loadBundle({ module: 'https://my-server.com/module.js', nomodule: 'https://my-server.com/no-module.js' });