title: Angular get in controller
body: <p>I am learning Angular. The following code works:</p>
  
  <pre><code>.controller('abc', function ($scope, $http)
  {
  $http.get("/Handlers/Authentication.ashx")
    .success(function (data)
    {
      alert(data);
    })
  </code></pre>
  
  <p>This function however does not:</p>
  
  <pre><code>.controller('abc', function ($scope, $http)
  {
  $scope.run = function ($scope, $http)
  {
      $http.get('/Handlers/Authentication.ashx');
      //  .success(function (data)
      //{
      //  alert(data);
      //});
  };
  }
  </code></pre>
  
  <p>I know that I should use a service here. But for learning purposes I would like to know why it does not work to call this function inside:</p>
  
  <pre><code>&lt;body ng-app="MainModule"&gt;
  &lt;div ng-controller="abc"&gt;
  &lt;div&gt;
      &lt;button type="button" class="btn btn-info" ng-click="run();"&gt;{{xx}}&lt;/button&gt;
  </code></pre>
  
  <p>Thank you for help in advance</p>