How to share same viewModel between dialog and dialogFragment? I know that viewModel can be shared in activity scope. But it is too big scope for me.
private val model: SharedViewModel by activityViewModels()
Unfortunately I don't have in a project navigation component.