title: $http get not resolving in $stateProvider
body: <p>I'm trying to fetch data (units) for a route (app.units). Here's the code.</p>
  
  <pre><code>  .state('app.units', {
      url: '/units',
      views: {
        'menuContent' :{
          templateUrl: "templates/units.html",
          controller: 'UnitCtrl',
          resolve:{
            units: function($stateParams, ExamService, $rootScope, $http){
              return $http.get(ApiEndpoint.url +'/units.json?auth_token='+$rootScope.globals.currentUser.userToken)
                .success(function(response){
                  //console.log('hello');
                  return response.data;
                })
            }
          }
        }
      }
    })
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BqWwZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BqWwZ.png" alt="Fails to resolve without errors"></a>
  <a href="https://i.stack.imgur.com/8rGaO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8rGaO.png" alt="End point works in Advanced Rest Client"></a></p>
  
  <p>As you can see this won't resolve, doesn't show any errors in the console and gives me a blank page in my ionic app, yet the endpoint works with Advanced Rest Client for chrome. I've been stuck on this for age could someone please figure this out.</p>