📌  相关文章
📜  使用 koin 将参数传递给 viewmodel android kotlin - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:13.194000             🧑  作者: Mango

代码示例1
viewModel{ params -> AlbumViewModel(artistId = params.get(), playlistId = params.get()) }
}
val a = anyObject
val b = anyObject
val albumvieModle  = AlbumViewModel by inject { parametersOf(a, b)