You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally element initialization code should be called from ready. created corresponds to createdCallback from the spec. This is the first callback an element receives and Polymer sets up data binding, property observers, Shadow DOM, etc. for the element at this time, which is why the attributes are not reflected to the properties at created time.
This document
produces a console log of:
which surprised me, and doesn't seem to be implied by http://www.polymer-project.org/polymer.html#configuring-an-element-via-attributes or http://www.polymer-project.org/polymer.html#lifecyclemethods. This could just be a documentation issue, but
created
seems like the place to "configure" an element, so it seems like the attributes should be propagated in at this point rather than waiting untilready
.The text was updated successfully, but these errors were encountered: