Angularjs 智能表不显示
我对AngularJS和Smart Table还不熟悉……我正在尝试一个简单的Smart Table示例,但由于某些原因,我似乎无法显示我的表数据 这是我的html: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>
<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填充智能表数据。不客气!请将此标记为正确答案!不客气!请将此标记为正确答案!