ReadonlysubscribeCan be used to subscribe to the emitted values of this Signal.
The callback which will be invoked when a new value is emitted.
OptionalinvokeImmediately: booleanWhen set to true it'll invoke the provided callback immediately with the latest value available. (defaults to false)
Can be used to import a new moduleOrBlueprint into the current Module.
Either the Module or the ModuleBlueprint to be imported.
OptionaladdToExports: booleanWhen set to true it'll also export the moduleOrBlueprint. (defaults to false)
Can be used to lazily import a new module into the current Module.
Note: This is useful when you want to lazy import a module from within another file.
addImportLazy(async () => import('./lazy.module'));
An async callback which will resolve the Module to be imported.
OptionaladdToExports: booleanWhen set to true it'll also export the module. (defaults to false)
The Provider to add.
OptionaladdToExports: booleanWhen set to true it'll also export the module. (defaults to false)
Can be used to lazily bind a new provider to the Module's container.
Note: This is useful when you want to lazy import a provider from within another file.
addImportLazy(async () => import('./lazy.provider'));
An async callback which will resolve the Provider to add.
OptionaladdToExports: booleanWhen set to true it'll also export the module. (defaults to false)
Can be used to remove a Module or Provider from
the exports definition of this module.
Note: Consumers which already consumed the exportDefinition may still old a reference onto it.
The ExportDefinition to be removed.
Can be used to remove an import from the current Module.
It'll also automatically remove it from the exports definition.
Note: You can always add it back with the addImport or addImportLazy methods.
Either the module reference itself or its id.
Can be used to remove a provider from the current Module's container.
It'll also automatically remove it from the exports definition.
Note: You can always add it back with the addProvider or addProviderLazy methods.
Either the provider reference itself or its { provide } property value.
Can be used to subscribe in real-time to the definition changes.