Reputation: 6762
Im creating my Polymer App and I need to use the Ready callback to initiate some events and stuff. The problem is that if I add the following code:
ready() {
console.log("App is ready!");
}
the app doesnt load correctly, it stops before loading completely. For example: I use some kind of canvas and they are not created if I add the function. Last thing in the console is the log of the function ready "App is ready!".
Upvotes: 0
Views: 122
Reputation: 2737
You forgot to call
super.ready()
method. You must call the superclass method. This is required so Polymer can hook into the element's lifecycle.
Example:
ready() {
super.ready();
// …
}
Upvotes: 2