MCPcopy Index your code
hub / github.com/angular-ui/ui-router / reject

Function reject

test/angular/1.5/angular.js:16831–16835  ·  view source on GitHub ↗

* @ngdoc method * @name $q#reject * @kind function * * @description * Creates a promise that is resolved as rejected with the specified `reason`. This api should be * used to forward rejection in a chain of promises. If you are dealing with the last promise in * a promise chain,

(reason)

Source from the content-addressed store, hash-verified

16829 * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
16830 */
16831 function reject(reason) {
16832 var result = new Deferred();
16833 result.reject(reason);
16834 return result.promise;
16835 }
16836
16837 function handleCallback(value, resolver, callback) {
16838 var callbackOutput = null;

Callers 2

handleCallbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected