Quantcast
Viewing all articles
Browse latest Browse all 8068

Alloy controllers in alloy.js

I was just wondering. I have all of my controllers being created in alloy.js is this an ideal way to go about swapping through windows?

an example would be as follows

alloy.js

Alloy.globals.myWindow = alloy.createController('myWindow').getView();
Alloy.globals.myNewWindow = alloy.createController('myNewWindow').getView();
I swap windows in the code as follows
Alloy.globals.myWindow.close();
Alloy.globals.myNewWindow.open();

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>