ich intelligenten Tisch verwenden, aber ich bin nicht in der Lage, die Tabelle zu sortieren, die folgende ist mein CodeNicht in der Lage zu sortieren mit Smart Table in AngularJS
<div ng-app="app">
<div ng-controller="app-controller">
<table st-table="EmployeeDetails" class="table table-striped table-hover" st-safe-src="EmployeeData">
<thead>
<tr>
<th st-sort="EmployeeName">Employee Name</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="employee in EmployeeData">
<td class="col-xs-2">
<small>{{employee.EmployeeName}}</small>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<script type="text/javascript">
var app = angular.module('app', []);
app.controller('app-controller', ['$scope','$http', function ($scope,$http) {
$http.get('/Data/EmployeeDetails.json').success(function (data) {
$scope.EmployeeData = data;
}).error(function() {
alert('error');
});
}]);
</script>
kann mich jemand wissen, lassen, was genau falsch ist, i beide Angularjs und Smart-table.js haben
verwiesen<script src="../Scripts/angular.js"></script>
<script src="../Scripts/smart-table.js"></script>
ist es jemand die Antwort kennen, bitte posten –