Reputation: 621
In my ViewModelOne I need to call a method from ViewModelTwo. How can I do that and is it a good practice?
Upvotes: 0
Views: 1288
Reputation: 164
In clean code and MVVM structure(common way), Actually in a ViewModel, You don't have access to another ViewModel. You can use SharedViewModel to communicate via view(Fragment).
Upvotes: 1