Twitch API with AngularJS

I’m trying to pull the list of current streams from the API and iterate that information with AngularJS. When I put in the JSON data directly in the js file, Angular works fine. However, when using an http request as shown below, I get a blank page. Any help is appreciated. Thanks!

Http file:

<!DOCTYPE html>
<script src=""></script>
<script src=""></script>
   <div ng-app="myApp" ng-controller="namesCtrl">
         <li ng-repeat="x in names">
            {{ }}
<script src="repeat.js"></script>

JS page:

var app = angular.module('myApp', []);
app.controller('namesCtrl', function($scope, $http) {
    .success(function(response) {$scope.names = response.streams;});

It seems to work fine for me:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.