Last active
August 29, 2015 14:25
-
-
Save justinfagnani/ff4fe748dc222f45b025 to your computer and use it in GitHub Desktop.
gist-server test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"polymer": "https://raw.githubusercontent.com/Polymer/polymer/v1.0.7/", | |
"webcomponentsjs": "https://raw.githubusercontent.com/webcomponents/webcomponentsjs/v0.7.7/" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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