MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / $QProvider

Function $QProvider

code/songhop/www/lib/angular/angular.js:13037–13044  ·  view source on GitHub ↗

* @ngdoc service * @name $q * @requires $rootScope * * @description * A service that helps you run functions asynchronously, and use their return values (or exceptions) * when they are done processing. * * This is an implementation of promises/deferred objects inspired by * [Kris Kowal's Q]

()

Source from the content-addressed store, hash-verified

13035 * @returns {Promise} The newly created promise.
13036 */
13037function $QProvider() {
13038
13039 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
13040 return qFactory(function(callback) {
13041 $rootScope.$evalAsync(callback);
13042 }, $exceptionHandler);
13043 }];
13044}
13045
13046function $$QProvider() {
13047 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected