Skip to content

createChildContainer

createChildContainer(parent, providers?): Container

Defined in: packages/di-craft/src/core/container/container.ts:85

Creates a child container that can resolve providers from its parent.

Child containers may register their own providers while still reusing parent providers. Scoped providers create one cached instance per resolving child.

Container

readonly Provider[] = []

Container