I have called data with laravel api and send to footable using angularjs but the pagination not working, Is there any way to set the no of records for pagination and reload the footable.
Asked
Active
Viewed 712 times
1 Answers
1
Footable is a jquery plugin. This means that it will be instantiated before the Angular can add contents as response from php.
Usually, the best way to approach this would be to instantiate the plugin after you have your data client-side.
My suggestion would be to create the table using the angular directives as, I believe, you already do and then initialize your plugin like the documentation says $('.footable').footable();
after you receive your data.

Jonathan La'Fey
- 542
- 5
- 13
-
Same case with me. In my specific case, there were 2 reasons: 1. I had not enclosed `$('.footable').footable();` within "on dom ready" jquery syntax `$(function() { $('.footable').footable(); }) 2. I had forgotten to create pagination region for footable (e.g. view a `.pagination tfoot` – gthuo May 07 '16 at 14:36