It is nice that I can define store like this inside the ViewModel
Use dedicated Store class inside the ViewModel
stores: {
posts: {
model: 'MyApp.model.Post'
}
}
However, this is really horrible from Automated Testing perspective. If I have a dedicated store class like 'MyApp.store.PostStore' then I can create a clean Unit Test file for that class and do check that all event listeners logic are working...but with above syntax, I can't do that. I really I can do this in the future
stores: {
posts: {
type: 'postStore'
}
}
If anyone know how I can inject it as above please let me know!
Use dedicated Store class inside the ViewModel
Aucun commentaire:
Enregistrer un commentaire