Skip to content

Instantly share code, notes, and snippets.

@justinfagnani
Last active August 29, 2015 14:25
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 justinfagnani/ff4fe748dc222f45b025 to your computer and use it in GitHub Desktop.
Save justinfagnani/ff4fe748dc222f45b025 to your computer and use it in GitHub Desktop.
gist-server test
{
"polymer": "https://raw.githubusercontent.com/Polymer/polymer/v1.0.7/",
"webcomponentsjs": "https://raw.githubusercontent.com/webcomponents/webcomponentsjs/v0.7.7/"
}
<!DOCTYPE html>
<html>
<head>
<script src="../webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="proto-element.html">
</head>
<body>
<proto-element></proto-element>
</body>
</html>
<link rel="import" href="../polymer/polymer.html">
<script>
// register a new element called proto-element
Polymer({
is: "proto-element",
// add a callback to the element's prototype
ready: function() {
this.textContent = "I'm a proto-element. Check out my prototype!"
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment