In my small AngularJS app, I render several tables using the ngTable library. Only one could use pagination. The others will always fit on less than a page. Every rendered ngTable seems to add the "10 25 50 100" selector below the table. For most of my tables, this is wasted space and is nonfunctional. How can I remove that section and get that space back?
This was recently fixed (https://github.com/esvit/ng-table/issues/6) This code should do it for you (copied from same git issue):
$scope.tableParams = new ngTableParams({     count: items.length // hides pager },{     counts: [] // hides page sizes }); Use this approach (based on this link) :
$scope.tableParams = new ngTableParams({         page: 1,   // show first page         count: 5  // count per page     }, {         counts: [], // hide page counts control         total: 1,  // value less than count hide pagination         getData: function($defer, params) {             $defer.resolve(data);         }     }); If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With