C#C
C#3y ago
ivi

✅ MVVM: Are models observable?

I never quite understood what the Model is in MVVM.

My assumption is that this is any data you feed into the application, from any source, and can be swapped out for any other, and viewmodels have to support that.

Yet it seems very convenient to put Observable collections/properties in your Model to make the rest of the code work. But would you be able to even expect that from the model you put in?

Or is the Model a bespoke part of your application which in turn grabs & stores that external data, and therefore is free to be designed with Observability?
Was this page helpful?