load($stateParams.draftId); getMetaData(); ...The load method has this code:
spinnerService.startSpinner('loaditemtree'); loadItemTreeRoot(draftId); loadUnassigned(draftId);The last 2 load functions as well as getMetaData call some service which returns promise. My problem is that I don't want to execute extra code if, for example, the very first method loadItemTreeRoot already returns a bad status.