What's the point of separating the Model from the View Model? (MVVM)
问题 I don't think I understand the MVVM pattern properly because having a Model and ViewModel class seems redundant to me. My understanding of the Model is to basically add in minor details of a class and let the ViewModel handle all the logic and implementation. If that is the case why separate the two? Couldn't you create the variables, properties and such in the view model and still have the logic in there? To me it sounds like C++ in a way. You have the header file which describes the class