Currently, I have a table with a variable number of rows, but it is set to display 10 rows in each page by default since the table is paginated.
Now, I am working on adding a text box where users can input the number of rows they would like displayed on each page. Here's what it looks like:
<input type="number" min="1" max="100" ng-model="rowsperpage"/>
In my controller, I have defined:
$scope.rowsperpage = 10;
This table utilizes smart technology, and I’ve been trying to solve this for the past 3 hours. Any help from those experienced in Angular would be greatly appreciated.
If you notice any mistakes in my approach, please guide me as I’m relatively new to the world of Angular.