Can you provide a code snippet of what you're doing?
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/1d64850a-d018-46a1-8b96-fe570c77a1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<dom-module id="ws-product">
<template>
<style include="shared-styles"></style>
<style>
:host {
display: block;
}
div.addToCart {
border: 1px solid grey;
padding:5px;
}
div.clear {
clear: both;
}
</style>
<hr>
<div class="product">
<h3>{{product.name}}</h3>
<div class="description">
<p>{{product.description}}</p>
</div>
<div class="info">
{{product.info}}
</div>
</div>
</template>
<script>
(function() {
'use strict';
Polymer({
is: 'ws-product',
properties: {
product: {
name: {
type: String
},
description: {
type: String
},
info: {
type: String
}
}
}
});
})();
</script>
</dom-module>
Currently polymer has no means of safe html injection but you can use a really dirty hack and set your divs innerHTML property as inner-h-t-m-l="{{producct.info}}" and that should work for now...
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/0c2cfd91-c7f5-4a98-9c1d-b5ba0f5a4e64%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/0b8bd667-3192-452b-a2ea-4194828ee434%40googlegroups.com.