The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Gets a named component from the container.
The component name.
A promise that resolves to the registered component
Gets multiple named components from the container.
The component names.
A Promise that resolves to the registered components
Gets any components registered under a specific tag.
The tag.
A Promise that resolves to the tagged components.
Gets the names of all registered components.
The registered component names.
Checks if the container holds a named component.
If this method returns true, invoking get with the same parameter will
not throw a RangeError.
The component name.
Whether the component exists in the container
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
A simplistic asynchronous dependency injection container.