Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnicklas/12ae4fc513ad50434f85 to your computer and use it in GitHub Desktop.
Save jnicklas/12ae4fc513ad50434f85 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="bower_components/platform/platform.js"></script>
<link rel="import" href="bower_components/polymer/polymer.html">
</head>
<body>
<polymer-element name="hello-world" attributes="step" noscript>
<template>
<h1>Hello {{name}}</h1>
</template>
</polymer-element>
<script>
setTimeout(function() {
Polymer('hello-world', {
name: "Jonas"
});
document.body.appendChild(document.createElement("hello-world"))
}, 500);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment