问题
What are the differences between the observable, ObservableObject and Model? Thank You.
回答1:
Model inherits from ObservableObject which inherits from Observable.
- Observable provides support for events - the bind, unbind and trigger methods.
- ObservableObject provides change tracking. Used by the DataSource and the MVVM framework.
- Model provides identity (via the
id
field) and field definition. Used by the DataSource whenschema.model
is set.
来源:https://stackoverflow.com/questions/20246885/kendo-ui-difference-between-observable-observableobject-and-model