Closed axelboc closed 7 years ago
Add the following properties and methods to the component manager module, and expose them on the global window.uom object:
window.uom
injectionComponents
injectionInstances
registerInjectionComponents
applyInjection
Add the following properties and methods to the component manager module, and expose them on the global
window.uom
object:injectionComponents
: the registered injection components by labelinjectionInstances
: the instances by label (an injection can only ever have one instance)registerInjectionComponents
: a method to register one or more injection componentapplyInjection
: a method to initialise all registered injection components