Last active
August 29, 2015 14:10
-
-
Save bdulac/5c39b740ec7a52a15e8b to your computer and use it in GitHub Desktop.
Polymer component problem without a content tag
This file contains hidden or 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>Polymeria sample</title> | |
<script src="polymer/platform/platform.js"> | |
</script> | |
<link rel="import" href="polymer/polymer/polymer.html"> | |
<polymer-element name="test-content" attributes="name"> | |
<template> | |
<span layout vertical left> | |
{{ name }} | |
<content></content> | |
</span> | |
</template> | |
<script> | |
Polymer({}); | |
</script> | |
</polymer-element> | |
<polymer-element name="test-no-content" attributes="name"> | |
<template> | |
<span layout vertical left> | |
{{ name }} | |
</span> | |
</template> | |
<script> | |
Polymer({}); | |
</script> | |
</polymer-element> | |
</head> | |
<body unresolved> | |
<section> | |
<div style="background-color: green;"> | |
<test-content name="no end tag" /> | |
<test-content name="end tag"> | |
</test-content> | |
</div> | |
<div style="background-color: red;"> | |
<test-no-content name="no end tag" /> | |
<test-no-content name="end tag"> | |
</test-no-content> | |
</div> | |
</section> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment