function returnPromiseWhileStagingThenConditions(someVariable) {
return globalService.getStuff(someVariable).then(yesGood, noBad);
function yesGood() {
otherGlobalThing.doSomething();
return $q.when();
}
function noBad() {
return $q.reject();
}
}
No comments:
Post a Comment