Sencha Touch MVC — recommended ways of passing data through the controller?

前端 未结 4 1839
情深已故
情深已故 2021-01-02 07:32

I\'m using Sencha Touch for a mobile app and am using the MVC functionality in it. I like Sencha quite a bit but I\'m having a little trouble when it comes to passing data

4条回答
  •  既然无缘
    2021-01-02 08:15

    A better solution might be restructure your MVC to eliminate the need to pass records around different views. For example, making different view component share the same store, whose reference is made accessible from anywhere needed.

    Usually I'd put the reference of stores used across different views in locations such as App.controllers.data nor directly under App (which is really just part of controller anyway).

提交回复
热议问题