title: Angular response is undefined
body: <p>Trying to retrieve using angular the json found at: "<a href="https://api.github.com/users/angular" rel="nofollow noreferrer">https://api.github.com/users/angular</a>", more precisely the id property from that json.
  Any thoughts on why this fails (in debug mode I get a </p>
  
  <blockquote>
    <p>'response is not defined'</p>
  </blockquote>
  
  <p>):</p>
  
  <pre><code>&lt;html ng-app="myViewer"&gt;
  &lt;head&gt;
  &lt;script data-require="angular.js@*" data-semver="1.2.25" src="https://code.angularjs.org/1.2.25/angular.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  
  &lt;body ng-controller="MyController"&gt;
      {{ result.id }}
      {{ err }}
  &lt;/body&gt;
  
  &lt;script type="text/javascript"&gt;
  (function() {
  
      var app = angular.module("myViewer", []);
  
      var MyController = function($scope, $http)
      {
          $http.get("https://api.github.com/users/angular")
          .then(function1, onerr);
  
          var function1 = function(response)
          {
              $scope.result = response.data;
          }
          var onerr = function(reason)
          {
              $scope.err = "nightmare";
          }
  
      }
  
      app.controller("MyController", ["$scope", "$http", MyController]);
  }());
  
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I expect the result to be the id that you can see by copying that link in your browser.</p>