MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / $QProvider

Function $QProvider

lib/test/angular/1.4.3/angular.js:14467–14474  ·  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

14465 * @returns {Promise} The newly created promise.
14466 */
14467function $QProvider() {
14468
14469 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
14470 return qFactory(function(callback) {
14471 $rootScope.$evalAsync(callback);
14472 }, $exceptionHandler);
14473 }];
14474}
14475
14476function $$QProvider() {
14477 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected