JSFiddle - React, Tailwind, and code Playground

by Wilson Nguyen

HTML

<div ng-controller="MainCtrl">
  <table>
    <tr ng-repeat="x in names">
      <td>{{ x.draw_date }}</td>
      <td>{{ x.winning_numbers }}</td>
      <td>{{ x.multiplier }}</td>
    </tr>
  </table>
</div>

JavaScript

var app = angular.module('MyApp', []);
app.controller('MainCtrl', function($scope, $http) {
  $http.get("http://data.ny.gov/resource/d6yy-54nr.json")
    .then(function(response) {
      $scope.names = response.data;
    });

});