<div dir="ltr">Hi folks,<div><br></div><div>Currently the launch instance model file does all the fetching of various bits of data. Combined with all of the controllers also being loaded at wizard startup, this results in some very difficult synchronisation issues*.</div><div><br></div><div><span style="font-size:13.1999998092651px">An issue I've run into is the initialisation of the controller based on model data. Specifically, loading the "allocated" and "available" lists into the security groups transfer table. I can load a reference to the model securityGroups array as the "available" set, but since that data is generally not loaded (by some other code) when the controller is setting up, I can't also select the first group in the array as the default group in "allocated".</span><br></div><div><br></div><div>So, I propose that the model data for a particular pane be loaded *by that pane*, so that pane can then attach a callback to run once the data is loaded, to handle situations like this (which will be common, IIUC). Or the model needs to provide promises for the pane controllers to attach callbacks to.</div><div><br></div><div><br></div><div>      Richard</div><div><br></div><div>* <span style="font-size:13.1999998092651px">one issue is the problem of the controllers running for the life of the wizard and not knowing when they're active (having them only be temporarily active would solve the issue of having to watch the transfer tables for changes of data - we could just read the allocated lists when the controller "exits").</span></div></div>