Created
September 30, 2014 03:07
-
-
Save joncodo/b8afbaff493a482707ca 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
| myApp.service('DealRetrievalService', ['$http', function($http) { | |
| return { | |
| getAllDeals: function() { | |
| return $http.get('/dealRecord') | |
| .success(function(deals) { | |
| var temp = DealRetrievalService.removeExpiredDeals(deals.data); | |
| console.log('deals were:', temp); | |
| return DealRetrievalService.removeExpiredDeals(deals.data); | |
| }) | |
| .error(function(err) { | |
| }); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment