使用AngularJS和restful api创建动态表

使用AngularJS和restful api创建动态表,angularjs,rest,angularjs-ng-repeat,Angularjs,Rest,Angularjs Ng Repeat,我正在尝试使用QuandlRESTfulAPI和AngularJS创建一个表。虽然创建的表格标题以及表格行根本没有填充数据,但只有空行 这是我的控制器: angular.module('stockControllers', []) .controller('stockController', function($scope, $http){ var results = {}; $http.get('https://www.quandl.com/api/v3/datasets/WIKI/F

我正在尝试使用QuandlRESTfulAPI和AngularJS创建一个表。虽然创建的表格标题以及表格行根本没有填充数据,但只有空行

这是我的控制器:

angular.module('stockControllers', [])
.controller('stockController', function($scope, $http){
  var results = {};
  $http.get('https://www.quandl.com/api/v3/datasets/WIKI/FB.json?start_date=2017-11-01&api_key=3pg7TVEyogz6D6FXhf5g').
  then(function(response) {
      $scope.resulting = response.data;
      console.log($scope.resulting);
 });
});
HTML代码:

<div ng-controller="stockController">

<div class='page-header'>
<h1> {{resulting.dataset.name}} </h1>
<p> Note: showing only OHLC data </p>
</div>

<table class="table table-striped">
    <tr>
        <th>{{resulting.dataset.column_names[0]}}</th>
        <th>{{resulting.dataset.column_names[1]}}</th>
        <th>{{resulting.dataset.column_names[2]}}</th>
    <th>{{resulting.dataset.column_names[3]}}</th>
    <th>{{resulting.dataset.column_names[4]}}</th>
</tr>
<tr ng-repeat="row in resulting.dataset.data">
    <td>{{resulting.dataset.data[row][0]}}</td>
    <td>{{resulting.dataset.data[row][1]}}</td>
    <td>{{resulting.dataset.data[row][2]}}</td>
    <td>{{resulting.dataset.data[row][3]}}</td>
    <td>{{resulting.dataset.data[row][4]}}</td>
</tr>
</table>

</div>
angular.module('app',[]).controller('ctrl',function($scope){
$scope.resulting={
数据集:{
列名称:[“日期”、“开盘”、“高位”、“低位”、“收盘”、“成交量”、“除息”、“分割比率”、“调整开盘”、“调整高位”、“调整低位”、“调整收盘”、“调整成交量”],
数据:[
["2017-11-13",
177.5,
179.04,
177.3,
178.77,
9431449,
0,
1.
177.5,
179.04,
177.3,
178.77,
9431449
],
[
"2017-11-10",
178.35,
179.0999,
177.96,
178.46,
10933405,
0,
1.
178.35,
179.0999,
177.96,
178.46,
10933405
]
]
}
}
});
表格,
th,
运输署{
边框:1px纯黑;
边界塌陷:塌陷;
}

{{head}}
{{val}}
"dataset": {   
"column_names": ["Date","Open","High","Low","Close","Volume","Ex-Dividend","Split Ratio","Adj. Open","Adj. High","Adj. Low","Adj. Close","Adj. Volume"],
"data": [["2017-11-13",
 177.5,
 179.04,
 177.3,
 178.77,
 9431449,
 0,
 1,
 177.5,
 179.04,
 177.3,
 178.77,
 9431449 ],,
[
 "2017-11-10",
 178.35,
 179.0999,
 177.96,
 178.46,
 10933405,
 0,
 1,
 178.35,
 179.0999,
 177.96,
 178.46,
 10933405 ],,