Created
October 21, 2021 13:48
-
-
Save burnoo/2201a53cf5dd8e0d783aeb13cfae8a19 to your computer and use it in GitHub Desktop.
Cokoin medium 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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