Coming from MVP to viewModels, I feel I'm a bit lost when it comes to where to place some code. One example is where to place the click listeners. in MVP I would do something like this
myButton.setOnClickListener { presenter.onMyButtonClicked }
should I be doing the same with a ViewModel? I don't think so. because it means that I'm treating the viewmodel as if it was a presenter.
But, on the other hand, if I handle the click listener in the view (activity or fragment), the view might not end up as dumb as it should be.
Where is the most suitable place in which a click listener should be handled?