Created
May 10, 2017 04:33
-
-
Save guyjacks/79e2c0b9228e5a03f65fb647d6267b8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reloadCases (afterLoad){ | |
console.log('reloadCases()'); | |
// Reload cases and executes the given afterLoad callback when done. | |
casesResource.query().$promise.then(function (someCases) { | |
console.log('reloadCases()', someCases); | |
ctrl.cases = someCases; | |
$timeout(updateCases, 100); | |
!!afterLoad ? afterLoad.call() : null; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment