Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
  <title>polymer</title>
  <script src="https://rawgit.com/webcomponents/webcomponentsjs/master/webcomponents-lite.js"></script>
  <link rel="import" href="https://rawgit.com/Polymer/polymer/master/polymer.html">
</head>
<body>
<dom-module id="x-test">
  <template>
    <div id="container"></div>
  </template>
</dom-module>
  <script>      
    Polymer({
      is: 'x-test',
      properties: {
        greeting: {
          type: String,
          value: ''
        }
      },
      ready: function() {
        this.greeting = 'Hello World';
        //looking for an alternative of 0.5's injectBoundHTML()
        //this.injectBoundHTML('<div>{{greeting}}</div>', this.$.container);
        this.$.container.innerHTML = '<div>{{greeting}}</div>';
      }
    });
</script> 
<x-test></x-test>
</body>
</html>
Output

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

Dismiss x
public
Bin info
jasongardnerlvpro
0viewers