Computer scienceProgramming languagesKotlinAdditional instrumentsAdditional librariesDependency injection tools

Advanced Koin

Theory

Linking scopes

Report a typo

Write the code to link parent's scope to child's scope, so parent's scope can also resolve child-scoped components:

val parent = koin.get<ParentScope>()
val child = parent.scope.get<ChildScope>()
/* your code here */
Enter a short text

Create a free account to access the full topic