Polymer (few follow up things)

7 views
Skip to first unread message

Pete Gordon

unread,
Jan 23, 2015, 5:58:54 PM1/23/15
to cbu...@googlegroups.com
Hey everyone... thanks for coming out to the talk on Polymer and the w3 standards (Custom Elements, Shadow DOM, etc.).  I wanted to follow up on a few questions that came up....

1.  The Polymer Designer is now available here... (it is linked to from the main polymer site)

2.  Here is a good article on the differences between Angular and Polymer, and some comments about them working together...

3.  And lastly, the question about the select="img" in a Custom Element referring to the 1st img or all img; the answer is ALL IMG tags (kudos to the guy in the second row who had the correct answer!).  You can try this in the sample code....  and see that it follows the select="img" placement in the custom element (post-card).

        <post-card favorite="{{post.favorite}}" on-favorite-tap="{{handleFavorite}}" hidden?="{{show == 'favorites' && !post.favorite}}">
          <img src="{{post.avatar}}" width="70" height="70">
          <h2>{{post.username}}</h2>
          <p>{{post.text}}</p>
          <img src="http://velocityagency.com/wp-content/uploads/2013/08/go.jpg" width="70" height="70">
          <p>More great content here</p>
          <img src="https://www.polymer-project.org/images/logos/p-logo.svg" width="70" height="70">
          <p>And even more here</p>
        </post-card>


Cheers!
Pete Gordon

Reply all
Reply to author
Forward
0 new messages