Quantcast
Viewing all articles
Browse latest Browse all 8068

Bind collection to more than one view?

Is it possible to bind a collection to more than one view?

First I bind a collection to a ListView on my first window and call fetch(). It displays all the models. The next screen binds the same collection to a new ListView then calls Alloy.Collections.retailers.trigger('change'); but the list never displays. I can see the transform function getting called but nothing is displayed. If I comment out the fetch() on the initial window and do it instead on the second window then the list is displayed.

Any ideas on what is causing the collection to not display on the second window?

Thanks for any help.


Viewing all articles
Browse latest Browse all 8068

Trending Articles