Closed rChaoz closed 3 years ago
- added explanations for the low-level
ViewModel
(since it is no longer used; theItemViewModel
is used and explained instead) and moved the paragraph explaining the differences here
Well, I was a bit confused because of mentioning ViewModel and using ItemViewModel instead in the guide. Now it makes much sense.
I would guess the code used to be for a
ViewModel
and was updated for anItemViewModel
, and the documentation hasn't been fully updated to reflect this; a few of these changes fix just that. Full change list:model.item
being referred to asmodel.person
save()
function explanation that wasn't needed (there is noperson
field that needs to be changed toitem
)model.rebind()
tomodel.rollback()
as this is the code that is truly analogous tomodel.rebind { item = person2 }
PersonModel
code is not included in the code (it is); as well as the passage in thePersonModel Implementation
paragraphPersonModel
paragraph to explain the updated code (usingClass::property
instead of lambdas)ViewModel
(since it is no longer used; theItemViewModel
is used and explained instead) and moved the paragraph explaining the differences here