It's a bit more subtle than that. The binding syntax can only be used inside of bound <template> elements. To be "bound", a <template> needs a the model property to be set, and to have the correct "bind" attribute set: http://www.polymer-project.org/docs/polymer/binding-types.html, or be inside an already bound template.
Polymer provides an "auto-binding" template that we use extensively for element demos: https://github.com/Polymer/core-icons/blob/master/demo.html#L79-L93 The template binding magic is done automatically to the <template> inside of <polymer-element>. On Wed, Aug 6, 2014 at 12:35 PM, Marco Scannadinari <[email protected]> wrote: > Judging by this link > <http://www.polymer-project.org/docs/polymer/polymer.html#declarative-event-mapping> > it > looks like it can't, but if so, then what is the use of the > double-moustache syntax if it is bound to that scope anyway? i.e. what > other scope could on-tap access apart from the element prototype defined in > Polymer("foo", { THIS BIT })? > > Thanks > > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/3650743a-81c0-4512-952b-4f0447e9337e%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/3650743a-81c0-4512-952b-4f0447e9337e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAAUAVAhrSCQdFnUG-6Xj4GpQyNPMTwRTKL1Nemd4puJwPA0iEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
