top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is $q service and when to use it in AngularJS?

0 votes
432 views
What is $q service and when to use it in AngularJS?
posted Jan 31, 2017 by Sahana

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

$q service that helps you run functions asynchronously, and use their return values (or exceptions) when they are done processing.
$q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred implementations, and the other which resembles ES6 (ES2015) promises to some degree.

answer Feb 1, 2017 by Samira Sharma
...