- Source:
Classes
Mixins
Namespaces
Methods
(static) globalize(path) → {function}
Make an imported module globally accessible via window
.
This function is intended to be used with dynamic imports, such as:
import('$qui/path/to/module.js').then(globalize('qui.path.to.module'))
When imported module has default export, the last element in path
is used to represent it:
import('$qui/path/to/class.js').then(globalize('qui.path.to.Class'))
Parameters:
Name | Type | Description |
---|---|---|
path |
String | dotted path |
- Source:
Returns:
a function that handles dynamic import call promise result
- Type
- function