Created
September 22, 2020 04:55
-
-
Save ch8n/a0a1cbc76aa4125b8f177608905c2b23 to your computer and use it in GitHub Desktop.
for medium article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you can remove `detailViewModel()` from injector and add it into a scoped e | |
// DI packag inside of your feature. | |
object MovieDetailInjector { | |
fun detailViewModel(activity: AppCompatActivity) : MovieDetailViewModel { | |
return ViewModelResolver.provideDetailViewModel( | |
Injector.detailViewModelFactory, activity | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment