Re: [polymer-dev] Polymer element selection from within custom element

22 views
Skip to first unread message

Rob Dodson

unread,
May 21, 2014, 2:02:06 PM5/21/14
to danch...@googlemail.com, polymer-dev
You're on the right track. We typically recommend using $ (which we call Automatic Node Finding) wherever you can since it saves on having to write out querySelector every time.


On Wed, May 21, 2014 at 7:47 AM, <danch...@googlemail.com> wrote:
I have been playing around with Polymer for a couple of days now, I am trying to workout what is the preferred way to do element selections from within a custom element.

I have noticed that if child elements within the template contain a id then it will appear as a object within $ (this.$.el)

Cheers 

Daniel.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/eef08608-88f3-42c1-becf-2a6e9b76f369%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages