If you use viewModel.attr
to access a value in a function inside the viewModel, on change of the attr
value within the model, your function will not be re-evaluated.
When a view model function accesses a value using the get()
method, it gets notified on each value change and the function logic is re-evaluated (see dependent methods
). If you use dot notation to access a value, you just get the current property value at the time of execution of this line of code.
Additional information about the ObservableObject (view model) in Kendo MVVM is available here