Check out Server-Fetched Partials.. https://laracasts.com/series/javascript-techniques-for-server-side-developers
Jan 18, 2023
2
Level 2
Best way to populate a blade view from ajax response
Hello,
I am developing an infinite scroll system. During the synchronous loading of the page, 50 elements are loaded and during the scroll 50 new elements are loaded, etc.
I would like to use the same blade view for these two cases. I do not want to build manually the html with javascipt.
For the moment, I generate the html in back and I send it directly in ajax response. But I don't like this way of doing.
Is there a better way to do it ?
Thanks !
Level 51
1 like
Please or to participate in this conversation.