Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Need clarification for ons-lazy-repeat
Abiraman Ramanathan last edited by Abiraman Ramanathan
I want some clarification for using ons-lazy-repeat .Because it destroys object while i scroll up. i have to call database again for That object . it will make lot of database call.So it correct way for lazy load.Help me
@Abiraman-Ramanathan That is the correct behavior in order to manage memory correctly. If you are not loading millions of records or images, you could use an array to store your results client side and load from that. Technically, the results object would not be overwritten if you call your DB once and then use that to load the list as you go.
This is referenced here: https://onsen.io/guide/overview.html#UsingLazyRepeat
In this section:
configureItemScopecontains the information about the items, which can be dynamically created or loaded from a array of items.