title: AngularJS $http success but not working
body: <p>i'm using angularJS and SLIM PHP restful server, the PHP service is working and actually i have already used $http.get() with no problems in this application ... 
  But now a strange thing is happening, i created a new function in the same way that the others, and it get .success(function(data)) with no problems, i actually can console.log(data) and it shows the right results, but when .success() finish and return, i recieve a undefined result.
  ps: there is no error in browser console.</p>
  
  <pre><code>    var markerOptions = [];
      loadMarkers();
      console.log(markerOptions);
  
      function loadMarkers() {
      $http.get('http://localhost/rest/getMarkers').success(function(response){
              console.log(response);
              markerOptions = response;
      });
  }
  </code></pre>
  
  <ul>
  <li>Console.log() inside success() return the right data</li>
  <li>Console.log() after loadMarkers() return undefined</li>
  </ul>