Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 智能表不显示_Angularjs_Smart Table - Fatal编程技术网

Angularjs 智能表不显示

Angularjs 智能表不显示,angularjs,smart-table,Angularjs,Smart Table,我对AngularJS和Smart Table还不熟悉……我正在尝试一个简单的Smart Table示例,但由于某些原因,我似乎无法显示我的表数据 这是我的html: <body ng-controller="basicsCtrl"> <p>Hello {{name}}!</p> <table st-table="rowCollection" class="table table-striped"> <thead>

我对AngularJS和Smart Table还不熟悉……我正在尝试一个简单的Smart Table示例,但由于某些原因,我似乎无法显示我的表数据

这是我的html:

    <body ng-controller="basicsCtrl">
  <p>Hello {{name}}!</p>
  <table st-table="rowCollection" class="table table-striped">
    <thead>
      <tr>
        <th>first name</th>
        <th>last name</th>
        <th>birth date</th>
        <th>balance</th>
        <th>email</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="row in rowCollection">
        <td>{{row.firstName}}</td>
        <td>{{row.lastName}}</td>
        <td>{{row.birthDate}}</td>
        <td>{{row.balance}}</td>
        <td>{{row.email}}</td>
      </tr>
    </tbody>
  </table>
</body>
这是我的密码:

谢谢

Shanna

简易修复

更改此行:

var app = angular.module('myApp', ['smartTable.table']);
为此:

var app = angular.module('myApp', ['smart-table']);
并在索引文件中重新排序脚本标记,以便angular位于智能表之前

这是更新的plunk

轻松修复

更改此行:

var app = angular.module('myApp', ['smartTable.table']);
为此:

var app = angular.module('myApp', ['smart-table']);
并在索引文件中重新排序脚本标记,以便angular位于智能表之前

这是更新的plunk

在同一示例中存在类似问题。你说重新订购我的脚本标签是什么意思

<script src="scripts/NonLibScripts/ScheduleScript.js"></script>
<script src="scripts/NonLibScripts/DataScript.js"></script>


这还不够吗?我正在尝试从DataScript填充智能表数据。

在同一示例中存在类似问题。你说重新订购我的脚本标签是什么意思

<script src="scripts/NonLibScripts/ScheduleScript.js"></script>
<script src="scripts/NonLibScripts/DataScript.js"></script>


这还不够吗?我正在尝试从DataScript填充智能表数据。

不客气!请将此标记为正确答案!不客气!请将此标记为正确答案!