Skip to content

Instantly share code, notes, and snippets.

@burnoo
Created October 21, 2021 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burnoo/2201a53cf5dd8e0d783aeb13cfae8a19 to your computer and use it in GitHub Desktop.
Save burnoo/2201a53cf5dd8e0d783aeb13cfae8a19 to your computer and use it in GitHub Desktop.
Cokoin medium 6
val module = module {
viewModel { AppViewModel() }
}
Koin(appDeclaration = { modules(module) }) {
val viewModel = getViewModel<AppViewModel>()
Text(viewModel.text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment