Hi all,
I have various code that ends up doing queries like this in my ViewController:
var data = this.getView().getViewModel().data;
data.template.save({ ... })
(where 'template' is a store, or linked model with an ID).
This seems strange - to need to go through the view to the data object to get to the viewmodel data. Am I doing it right?
I have various code that ends up doing queries like this in my ViewController:
var data = this.getView().getViewModel().data;
data.template.save({ ... })
(where 'template' is a store, or linked model with an ID).
This seems strange - to need to go through the view to the data object to get to the viewmodel data. Am I doing it right?
Aucun commentaire:
Enregistrer un commentaire