MVVM on Android, Episode 6: Build the ViewModel | Kodeco

See how to use the Android Architecture Component ViewModel and LiveData classes to create a ViewModel layer for your app.

This is a companion discussion topic for the original entry at

At the timestamp 4:40 while in the CreatureActivity.kt file,
the function ViewModelProviders has been replaced with

the new line should look like
viewModel = ViewModelProvider(this).get(

You can also open the final version of the building the view model test file

1 Like