Created
September 28, 2015 16:49
-
-
Save toddbranch/5c91c9c9fbf9f5d71c1f to your computer and use it in GitHub Desktop.
Angular Caching
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
| // trigger a digest manually | |
| $scope.$apply(function() { | |
| contactsService | |
| .getCommon('todd@conspire.com') | |
| .then(success, failure); | |
| }); | |
| // zero-delay $timeout | |
| $timeout(function() { | |
| contactsService | |
| .getCommon('todd@conspire.com') | |
| .then(success, failure); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment