Skip to content

Instantly share code, notes, and snippets.

@JanMiksovsky
Created October 2, 2015 21:49
Show Gist options
  • Save JanMiksovsky/ef59c30222b5d5fc06b5 to your computer and use it in GitHub Desktop.
Save JanMiksovsky/ef59c30222b5d5fc06b5 to your computer and use it in GitHub Desktop.
Create a Polymer element using a real <template>, not a <dom-module>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="import" href="../components/polymer/polymer.html">
<template id="test-element">
Hello, <content></content>.
</template>
</head>
<body>
<test-element>world</test-element>
<script>
Polymer({
is: 'test-element',
_template: document.querySelector('#test-element')
});
</script>
</body>
</html>
@lastmjs
Copy link

lastmjs commented Apr 14, 2016

Would it be worth it to create an issue for this, or somehow bring it up with the team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment