Join Slack
Powered by
Got it, thank you Victor! <@UJ2C5A5FS> I just wond...
# koin
o
Ofir Bar
12/28/2019, 12:57 PM
Got it, thank you Victor!
@voben
I just wonder, what can be an example use case of preferring to instantiate the ViewModel via
getViewModel()
over using the lazy instantiation via
by viewModel
?
v
voben
12/29/2019, 12:31 AM
If you only need a viewmodel in a single function like onCreate rather than a class level property, you could use getViewModel() within that function
👍 1
😁 1
2
Views
Open in Slack
Previous
Next