angular-ui / AngularJS-StyleGuide

Example of scalable architecture for my NG-Conf 2014 talk
http://www.youtube.com/watch?v=Iw-3qgG_ipU
284 stars 49 forks source link

Perform resolves in parallel vs serial #16

Closed ProLoser closed 9 years ago

ProLoser commented 9 years ago

Since each child state is waiting for the resolve of the parent object, we are performing our resolves in serial. Since all we really need are ID's (which are available immediately) we should relocate our get() calls to the class methods instead of the instance methods, or return the instances before they've been updated with data (this may make the controller a little more complex however).

ProLoser commented 9 years ago

This is essentially done in the new version since I removed sockets and pulled back on the relationships a bit.