Corey Lanier
11/20/2020, 2:29 AMJoost Klitsie
11/20/2020, 7:56 AMclass MyViewModel(val myRepository: MyRepository): ViewModel()
Then when you are creating this MyViewModel
, the myRepository
must be given somehow.
A factory will be able to do that.