Created
November 13, 2013 18:03
-
-
Save sorvell/7453526 to your computer and use it in GitHub Desktop.
polymer-element: manipulating an attribute containing html
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
<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