Please enable JavaScript.
Coggle requires JavaScript to display documents.
MVVM (Model (tipically dont handle behavior (except validation (normally))…
MVVM
Model
represents domain specific data
tipically dont handle behavior
except validation (normally)
*KnockoutJS
observable
special js objects that can notify subscribers about changes and autmatically detect dependencies
this allows us to syncronize Models and ViewModels whe the value of a Model attribute is modified
View
contains
data bindings
events
behavior
part of the app - users interact with it
NOT responsible for handling state
ViewModel
can be considered a specialized controller that handles data convertions
changes model information into view information
KnockoutJS => VM supplies operations that can be done on the UI
separate
ui dev
business logic
Declarative data bindings