What are the differences between the observable, ObservableObject and Model? Thank You.
1 Answer
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.
-
So, Model and ObservableObject are one the same, while Observable is something totally different? Commented Nov 27, 2013 at 15:59
-
-
Can I define the custom callback function in Model as I do in the observable object? Commented Nov 27, 2013 at 16:10
-
This is worth a new question with clarification and sample code. Commented Nov 27, 2013 at 16:16
-
Ok. Will prepare after some more research. Thank You for answers. Commented Nov 27, 2013 at 16:17