Edit in JSFiddle

var app = angular.module("DemoApp", []);

var DemoController = function (s, h) {
    h.get('https://api.github.com/users/angular/repos')
        .success(function (repos) {
        s.repos = repos;
    });
}
// $inject property annotation
DemoController['$inject'] = ['$scope', '$http'];

app.controller("DemoController", DemoController);
<body ng-app="DemoApp" ng-controller="DemoController">
   <h3>Angular Github Repositories</h3>
   <ul>
      <li ng-repeat="repo in repos"> 
          <a ng-href="{{repo.html_url}}"> {{ repo.name }} </a>
      </li>
   </ul>
</body>