Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SomeViewModel(
- private val someString: String,
- private val someRepo: SomeRepository,
- ) : BaseViewModel() {
- //Какой-то код
- }
- class SomeFragment : Fragment(R.layout.some_layount) {
- private val someViewModel by sharedViewModel<SomeViewModel> { parametersOf("Hello") }
- }
- val viewModelsModule = module {
- viewModel { (someString: String) -> SomeViewModel(someString, get()) }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement