@Fran-Diox Thanks very much, its work fine.
Posts made by luissanches
RE: Change DOM in new page before navigate
I load the lists of templates A and B dynamically. I use the callback method on “navigator.pushPage”, I access the “<ons-list>” list through the “document.getElementById” and add the items using “<ons-list-item>” with data received from a restful service.
The callback occurs after the navigation animation, and generates a perception that the screen “the list of items” has a delay.
I tried change list before push navigation or pass html with new list items, but does not work.
Change DOM in new page before navigate
I used ons-navigator and have some templates with lists, so
i’d like change list items before navigator animation. What is the best way?
I tried select by id, but the list still does not exist. I too tried pass options.pageHTML on pushPage method, but dont worked. I too tried filter prePush to change the innerHtml for the new template.
Has anyone ever experienced this and can help-me?