The HomeViewModel has an inject annotated constructor. Because of the way Jetpack ViewModels interact with Fragments, we can't directly inject HomeViewModel into the HomeFragment.
The solution to this is to use a ViewModel.Factory.
In this video, we'll create a simple reusable ViewModel.Factory that our Fragments will be able to inject. This factory will provide the injectable ViewModels to the Fragments via the lifecycle framework built into Fragments.