dir-pagination directive angularjs : Update pagination after filtering -


am using dir-pagination directive pagination, working fine while filtering pagination not getting update

error-dir-pagination

below mycode:

     <tbody dir-paginate="booking in bookinglist | itemsperpage: 30 | orderby:sortkey:reverse">         <tr ng-repeat="orders in booking.order | filter: booking_filter | daterange: startdate : enddate | orderby:sortkey:reverse">           <td>{{booking.customer_name}}</td>           <td>{{orders.order_id}}</td>           <td>{{orders.service_name}}</td>           <td>{{orders.employee_name}}</td>           <td>{{orders.area_name}}</td>           <td>{{orders.booking_date | date:"dd/mm/yyyy"}}</td>           <td>{{orders.booking_time}}</td>           <td>{{orders.status}}</td>           <td class="g-btn-full-width">             <button type="button" ng-click="editbooking(orders._id)" class="btn btn-primary"><span class="fa fa-pencil"></span></button>             <button type="button" ng-click="deletebooking(orders._id)" class="btn btn-danger"><span class="fa fa-trash"></span></button>             <button type="button" ng-click="invoicegenerate(orders._id)" class="btn btn-warning">invoice</button>           </td>         </tr>       </tbody>     </table>     <dir-pagination-controls>         max-size="5"         direction-links="true"         boundary-links="true"     </dir-pagination-controls>     </div> 

am stuck this...help appreciated

you have use filter: booking_filter in tag have put dir-paginate

<tbody dir-paginate="booking in bookinglist | filter: booking_filter | itemsperpage: 30 | orderby:sortkey:reverse"> 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -