Last active
March 21, 2019 21:23
-
-
Save Nimrodda/86bf4f99b4e6b4c0c9c99ac6c9dea16e to your computer and use it in GitHub Desktop.
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
class DetailActivity : DaggerAppCompatActivity() { | |
@Inject | |
lateinit var viewModelFactory: ViewModelFactory | |
private val viewModel by viewModels { viewModelFactory } | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
// Use viewModel here | |
viewModel.loadData() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment