Hi Ke, Single threaded does not mean linear execution! And that JS and the UI run in a single thread, does not mean there isn't going on more. There are a lot of asynchronous events happening. The executing environment (usually the browser, but node and so on too!) are doing a lot of things in parallel. a quick example, modern browsers load at least 5 resources at the same time. multiple connections.
Yes $q makes a lot of sense. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
