angularjs - Sending chunks of data sequentially on request from a Laravel api to Angular -


i trying show comments on frontend displayed facebook comments. see few comments , on scroll more comments displayed. using laravel backend , angular frontend.
wondering how send frontend request next chunk of data until of comments displayed , make in laravel perform queries next chunk @ request?

paginate data on server , when user gets on page, he/she see 10 comments example, when he/she clicks on view 10 more comments, show next page of comments, stored chunks of 10 inside paginator object.

the same idea apply if wanna display comments on scroll down.

build custom json response can work on front end.

check out laravel paginator api:

https://laravel.com/api/5.2/illuminate/pagination/paginator.html


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -