How install view model in fragmentComponent with Hilt injection?

后端 未结 0 666
生来不讨喜
生来不讨喜 2020-12-29 00:23

I want scope viewmodel by Fragment but activity,

interface MarsRepository {
    suspend fun getProperties(): List
}



@Module
@InstallIn(Fragment         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题