Home Ask Login Register

Developers Planet

Your answer is one click away!

Arvind Kapse February 2016

fooTable pagination not working with laravel/angular api data

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.


Jonathan La'Fey February 2016

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.

Post Status

Asked in February 2016
Viewed 2,558 times
Voted 13
Answered 1 times


Leave an answer

Quote of the day: live life