koin-android-viewmodel / org.koin.android.viewmodel.dsl / org.koin.core.module.Module

Extensions for org.koin.core.module.Module

viewModel

fun <T : ViewModel> Module.viewModel(qualifier: Qualifier? = null, override: Boolean = false, definition: Definition<T>): Unit

ViewModel DSL Extension Allow to declare a ViewModel - be later inject into Activity/Fragment with dedicated injector