각도가 새롭습니다. 나는 그 문서를보고 처음으로 스마트 테이블을 시험해 보았다. 검색 및 페이지 매김 중에 문제에 직면하고 있습니다. 나는 스택 오버 플로우에 대한 다양한 솔루션을 보려고했지만 성공하지는 못했습니다. https://cdnjs.cloudflare.com/ajax/libs/angular-smart :각도 스마트 테이블 검색 및 페이지 매김이 작동하지 않습니다.
<table st-table="displayedCollection" st-safe-src="rowList" class="table table-stripped">
<thead>
<tr>
<th st-sort="engagement_id">Engagement Id</th>
<th st-sort="customer_name">Customer Name</th>
</tr>
<tr>
<th colspan="8">
<input st-search placeholder="global search" class="input-sm form-control" type="search" />
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="data in displayedCollection">
<td>{{data.engagement_id}}</td>
<td>{{data.customer_name}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5" class="text-center">
<div st-pagination="" st-items-by-page="5" colspan="8"></div>
</td>
</tr>
</tfoot>
여기
여기 CDN 스마트 테이블을 사용하여 각 코드
$.post(MY_CONSTANT.url + '/all_rides', {
access_token: $cookieStore.get('obj').accesstoken,
start_limit: start_limit,
end_limit: end_limit
}, function (data) {
$scope.showloader=false;
if (data.status == true) {
var rides = data.data[1];
$scope.rowList = rides;
$scope.displayedCollection = [].concat($scope.rowList);
}
else if (data.status == responseCode.INVALID_ACCESS_TOKEN){
$state.go('page.login');
}
});
입니다 도와주세요하는 링크입니다 -table/2.1.8/smart-table.min.js ">
실제 문제는 무엇입니까? – PaulNUK