Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<head>
  
  <meta charset="utf-8">
  <base href="http://milestech.net/components/">
  <script src="webcomponentsjs/webcomponents-lite.min.js"></script>
  <link href="polymer/polymer.html" rel="import">
  
  <style>
    body {
      font-family: sans-serif;
    }
  </style>
</head>
<body>
  
<content-loader file-path="polymer/bower.json"></content-loader>
  
<dom-module id="content-loader">
  
  <template>
    <pre id="content"></pre>
  </template>
  
  <script>
    
    Polymer({
      is: "content-loader",
      properties: {
        filePath: {
          type: String,
          observer: 'loadFile'
        }
      },
      loadFile: function(path) {
        if (this.filePath) {
          console.log(this.filePath);
          var link = this.importHref(this.filePath, 
            function() {
              this.$.content.appendChild(link.import.body);
            },
            function(){
              console.log("error");
            }
          );
        }
      }
    });
  </script>
</dom-module>
  
</body>
Output

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

Dismiss x
public
Bin info
sjmilespro
0viewers