https://kotlinlang.org logo
#koin
Title
o

Ofir Bar

12/27/2019, 10:41 PM
However, following the documentation for ViewModel with koin (https://doc.insert-koin.io/#/koin-android/viewmodel?id=injecting-your-viewmodel) I can use getViewModel(), which will give me the ViewModel directly. If I change my code to that, I get a crash: