Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="http://www.polymer-project.org/platform.js"></script>
<script src="http://www.polymer-project.org/polymer.js"></script>
  
<polymer-element name="foo-bar">
  <template>
    <content id="c" select="template"></content>
    <!-- content is expected to contain a template with id="layout"-->
    <template bind ref="layout">
      default content template
    </template>
  </template>
  <script>
    Polymer({
      ready: function() {
        console.log(this.$.c.getDistributedNodes())
      }
    });
  </script>
</polymer-element>
<foo-bar>
  <template id="layout">
    <b>another</b> content template
  </template>
</foo-bar>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
ebidelpro
0viewers