Polymer selectors
Short notation won't work for dynamically-added elements:
assert($['my-element']==null); //True
Instead, use the full notation:
assert(shadowRoot.querySelector('#my-element')==null); // False
Written by Iain Campbell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Dart
Authors

inuyasha82
3.569K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#