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();