Skip to content

Instantly share code, notes, and snippets.

@bdulac
Last active August 29, 2015 14:10
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 bdulac/5c39b740ec7a52a15e8b to your computer and use it in GitHub Desktop.
Save bdulac/5c39b740ec7a52a15e8b to your computer and use it in GitHub Desktop.
Polymer component problem without a content tag
<!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