Registers a component.
The factory
parameter must be a Function
that returns the component.
You can provide an async function or one that returns a Promise
.
The tags
parameter must be an Array
of string
values. There are a few
tags with special meanings:
@eager
- The component will be instantiated when the container is built.provides a fluent interface.
Assembles configuration for a dependency injection container.