I think you basically "can't do that". Perhaps you can use a template bound to a property that is set in your showMdl function? ...along the lines of this :
<https://www.polymer-project.org/docs/polymer/template.html#if> On Wed Oct 29 2014 at 07:18:06 Антон Мирошниченко <[email protected]> wrote: > Thanks. But i suppose it is not polymer way. Meaby my question is not > correct. What if i need data-binding for a new element? > > среда, 29 октября 2014 г., 1:42:09 UTC+3 пользователь Claudius Nicolae > написал: > >> newElement.addEventListener('click', this.clickOnDynamicllyElement); >> >> learn js and dom >> > 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/d39e75e3-65a1-4637-837c-f3ece533acb7%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/d39e75e3-65a1-4637-837c-f3ece533acb7%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/CAMZCrPgireR3%3DwnBkt9t2_ZwimGSMV-b-j1UTguLbtK%3D3KyrSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
