DOM problems with jquery
First of all thank you for all your work.
There are some problems with the DOM, i’ve seen a few topic but using timeout function isn’t really the solution … I want to create a chart with Chart js but it isn’t finding the canvas because it isn’t hooked to the dom. Should I use pageinit ? Do you have a function that waits for the specific page to load?
Timeout is of course not the solution. We have mentioned it for testing purposes. The correct place to initialize a page is in its
init(Onsen 2) or
pageinit(Onsen 1.x) event. I think this code could be useful for you: https://github.com/frankdiox/OnsenUI-Material-Tabbar/tree/js-implementation
It’s implemented in pure JS so using jQuery should not be very different.