hextechhunt-client/js/services/HextechHuntService.js
// Helper method to make HTTP GET calls, with promises
Helper method to make HTTP GET calls, with promises
Helper method to make HTTP GET calls with promises
function httpGet(requestUrl) {
      var deferred = $q.defer();
      $http.get(requestUrl)
        .then(function(response) {
          deferred.resolve(response.data);
        })
        .catch(function(response) {
          deferred.reject(response);
        });
      return deferred.promise;
    }
function httpGet ( requestUrl ) { var deferred = $q . defer ( ) ; $http . get ( requestUrl ) . then ( function ( response ) { deferred . resolve ( response . data ) ; } ) . catch ( function ( response ) { deferred . reject ( response ) ; } ) ; return deferred . promise ; }
Helper method to make HTTP GET calls, with promises
Helper method to make HTTP GET calls with promises