Created
September 22, 2020 04:52
-
-
Save ch8n/77cf7ec5c1f6129491c6f75bd4d12269 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
class MovieDetailActivity : AppCompatActivity() { | |
private laterinit var viewmodel: MovieViewModel | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
viewmodel = Injector.detailViewModel(this) | |
...// viewModle is ready to be used... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment