As $q is a lightweight implementation of a promise spec, you can probably just post questions on SO tagged javascript / angular / promise and get some responses.
If you wanted to replace it, you could. Lots of browsers actually already implement native Promise objects, so one *could* just use those (and shim them if they don't - I'm a big fan of bluebird, personally). That said, the $q library doesn't just do promises, it *also* makes sure that promise stuff happens inside a $apply block, and makes use of angular internals to make that as performant as possible. Given that you're already kind of using $q to begin with in any other angular async calls ($http, $timeout all return $q promises), it's a least-resistance kind of thing. e On Sat, Aug 30, 2014 at 10:05 AM, Jonathan Matthew Beck <[email protected]> wrote: > I asked a question recently on the q forum, kriskowal response: > > "$q is unrelated to kriskowal/q" > > Meaning that questions about $q go where? $q is apparently a smaller, > lighter version of kriskowal/q. If you want, you can replace it inside > angular.js > > $q does a great job of handling asynchronous items. As powerful as > JavaScript libraries are getting I have to keep reminding myself that they > live in the sub-world of the browser. Nothing like native code and > threading. > > -- > 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. > -- 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.
