Edit in JSFiddle

var app = angular.module("DemoApp", []);
// Controller is injected with $scope and $http as dependencies
app.controller("DemoController", function ($scope, $http) {
    $http.get('https://api.github.com/users/angular/repos')
        .success(function (repos) {
        $scope.repos = repos
    });
});
<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>