Created
December 29, 2019 06:24
-
-
Save ursusursus/798d5774f8961fd8a098210d70c140c3 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