- Preparing search index...
- The search index is not available
Ditox.js
Function DependencyModule
- DependencyModule(params: {
children: ReactNode;
module: ModuleDeclaration<Module<Record<string, unknown>>>;
scope?: "scoped" | "singleton";
}): ReactElement
-
Parameters
-
params: {
children: ReactNode;
module: ModuleDeclaration<Module<Record<string, unknown>>>;
scope?: "scoped" | "singleton";
}
-
children: ReactNode
-
-
Optional
scope?: "scoped" | "singleton"
Returns ReactElement
Binds the module to a new dependency container.
If a parent container is exist, it is connected to the current one by default.
Example