https://developer.android.com/codelabs/android-dagger#9
Dagger Subcomponents
A RegistrationComponent must be able to access the objects from AppComponent since RegistrationViewModel depends on UserRepository.
But, actually, if we refer to a scheme of application graph from this codelabs, then we figure out that RegistrationViewModel depends on UserManager
https://developer.android.com/codelabs/android-dagger#9 Dagger Subcomponents A RegistrationComponent must be able to access the objects from AppComponent since RegistrationViewModel depends on UserRepository. But, actually, if we refer to a scheme of application graph from this codelabs, then we figure out that RegistrationViewModel depends on UserManager