Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://cdn.rawgit.com/skatejs/skatejs/863ea833c3f0618db32cdf20fc4a455b46582bdd/dist/index.min.js"></script>
</head>
<body>
  <script>
    // Set the property before loading the definition.
    var myel = document.createElement('my-element');
    myel.name = 'upgraded';
    myel.textContent = 'not upgraded';
    document.body.appendChild(myel);
    
    // Simulate loading the definition.
    setTimeout(function () {
      skate('my-element', {
        properties: {
          name: {
            attribute: true,
            set: function (elem, data) {
              elem.textContent = data.newValue;
            }
          }
        }
      });
    }, 1000);
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
treshugartpro
0viewers