Skip to content

Instantly share code, notes, and snippets.

@sorvell
Created November 13, 2013 18:03
Show Gist options
  • Save sorvell/7453526 to your computer and use it in GitHub Desktop.
Save sorvell/7453526 to your computer and use it in GitHub Desktop.
polymer-element: manipulating an attribute containing html
<polymer-element name="x-peeps" attributes="people">
<template>
<div id="bio"></div>
</template>
<script>
Polymer('x-peeps', {
peopleChanged: function() {
this.$.bio.innerHTML = this.people;
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment