How to do Nesting in Polymer?

52 views
Skip to first unread message

rohits...@gmail.com

unread,
May 27, 2014, 4:22:47 PM5/27/14
to polym...@googlegroups.com
Here is what I intend to put on my html page

<ml-slides>
  <ml-slide index="1">
     Slide 1
  </ml-slide>
  <ml-slide index="2">
     Slide 2
  </ml-slide>
</ml-slides>

And I want to render this

<div id="ml-slides">
  #shadow
   <div class="ml-sides" data-index="1">
      Slide 1
   </div>
   <div class="ml-sides" data-index="2">
      Slide 2
   </div>

</div>

Basically I want to put the contents of nested child polymer elements inside the shadow of the parent. Is it possible?




Eric Bidelman

unread,
May 27, 2014, 4:33:54 PM5/27/14
to rohits...@gmail.com, polymer-dev

Can you post this to stack overflow?

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/90a450af-7d57-4230-b81b-1ee19bf117f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages