When you add an alias name for a module, you can inject all modules with the same alias name as a dependency map or set into another module.
@injectAlias(NAME, KEY_BY?) decorator to inject a dependency Map or Set into a module. The decorator accepts the alias name as the first argument, resulting in a set of modules defined with the alias name.
If you pass the second
KEY_BY optional argument, the result will be a key/value pair map of modules, indexed by the KEY_BY field on each one of them.