angularjs - Angular Smarttable is not working -


i using smart table project. cannot make works, not sure happen.

when added st-table directive <table> result not displayed in table, display result in table if remove st-table directive <table> give error in console because st-table directive needed st-pagination.

here code

html

<table st-table="tablelist" class="table table-stripped">   <tr>     <th>       <input type="checkbox" ng-model="selectall" ng-click="selectedall()" />     </th>     <th>action</th>     <th>date</th>     <th>type</th>   </tr>   <tr ng-repeat="x in tablelist track $index">     <td>       <input type="checkbox" ng-model="x.selected">     </td>     <td>       <div class="btn-group">         <button class="btn btn-primary btn-xs" ng-click="opensetprice(x.id,x.matcode,x.pr_qty)">$</button>         <button class="btn btn-danger btn-xs" ng-click="delete(x.doc_no,x.item_no, $index)">x</button>       </div>     </td>     <td>{{x.date}}</td>     <td>{{x.type}}</td>   </tr>   <tfoot>     <tr>       <td colspan="23" class="text-center">         <div st-pagination="" st-items-by-page="12" st-displayed-pages="5"></div>       </td>     </tr>   </tfoot> </table> 

javascript

$http({   method: 'post',   url: "api/all-list.php",   headers: {     'content-type': 'application/x-www-form-urlencoded',   }   }).then(function(response) {     $scope.tablelist = response.data;   }, function(response) {     console.log("failed"); }) 

you have not implemented st-pipe="callserver". have handle calls server using function if want st-table