Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AddNavigatorToDI.kt
val appModule = module {
single<Navigator> {
ComposeCustomNavigator()
}
viewModel {
FirstSceenViewModel(
navigator = get()
)
}
viewModel {
SecondSceenViewModel(
navigator = get()
)
}
viewModel {
ThirdSceenViewModel(
navigator = get()
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment