Skip to content

Instantly share code, notes, and snippets.

@robotsquidward
Created September 30, 2020 12:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save robotsquidward/e9aaa3957f42a22fdb16e41fc8e9b071 to your computer and use it in GitHub Desktop.
private val model: MyViewModel by activityViewModels {
createWithFactory {
MyViewModel(repo = MyRepository())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment