In the created() method of my polymer element the this.shadowRoot is empty! This was not the case in the version 0.9.5+2. But now, in version 0.11.0+5 I get an error.
What did change? And what should I do? Where should I place the initialization of the shadow dom?
This never worked for me. I always do this in attached()
after the super.attached()
call.
@Justin Fagnani answered with a more detailed explanation on this question When is shadowRoot available to a polymer component?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.