Created
November 12, 2014 14:34
-
-
Save tommie/92e15c0dbe787a02d295 to your computer and use it in GitHub Desktop.
Polymer template
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> | |
<title>Template</title> | |
<script src="http://www.polymer-project.org/components/webcomponentsjs/webcomponents.js"></script> | |
<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html"> | |
</head> | |
<body> | |
<polymer-element name="x-test"> | |
<script> | |
Polymer({ | |
}); | |
</script> | |
</polymer-element> | |
<polymer-element name="x-app"> | |
<template> | |
<h1>{{title}}</h1> | |
</template> | |
<script> | |
Polymer({ | |
created: function() { | |
this.title = document.title; | |
} | |
}); | |
</script> | |
</polymer-element> | |
<x-app></x-app> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment