title: Angular $http.get not return data
body: <p>I created a helper service to wrap the $http.get. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>self.apiGet = function (url, success, failure, always) {
             
              $http.get(url)
                  .then(function (result) {
                      success(result);
                      if (always != null)
                          always();
                  }, function (result) {
                      if (failure != null) {
                          failure(result);
                      }
                      else {
  
                      }
                      if (always != null)
                          always();
                  });
          }</code></pre>
  </div>
  </div>
  </p>
  
  <p>In my controller class, the data is not returned to the view when calling getData(val). the data is returned from the api when I debug it.
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> $scope.getData = function (val) {
          return helper.apiGet(url,
              function (result) {
                  return result.data;
              });
      }; </code></pre>
  </div>
  </div>
  </p>