Created
December 29, 2019 06:24
-
-
Save ursusursus/11baa1a23f56702d931da4647a08ce74 to your computer and use it in GitHub Desktop.
This file contains 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
class Feature1Controller : Controller { | |
override fun onCreateViewModel(): Feature1ViewModel { | |
val appComponent = (activity.applicationContext as AppComponentProvider).appComponent() | |
return DaggerFeature1ControllerComponent.factory().create(appComponent).viewModel | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment