<link rel="import" href="../polymer/polymer.html"><dom-module id="fav-color"><style>.owner { font-weight: bold }</style><template>This is <span class="owner">[[owner]]</span>'s fav-color element.[[owner]] likes the color <span style$="{{setColorStyle(color)}}">[[color]]</span>.</template></dom-module><script>Polymer({is: 'fav-color',properties: {owner: {type: String,value: "Daniel"},color: {type: String,value: "red"},setColorStyle: function(color) {return "color: " + color;}}});</script>
This is Daniel's fav-color element. [[owner]] likes the color red.
This is Daniel's fav-color element. [[owner]] likes the color red.
This is Daniel's fav-color element. Daniel likes the color red.
<link rel="import" href="../polymer/polymer.html"><dom-module id="fav-color"><style>.owner { font-weight: bold }</style><template>This is <span class="owner">[[owner]]</span>'s fav-color element.
<span>[[owner]]</span> likes the color<span style$="{{_setColorStyle(color)}}">[[color]]</span>.
</template></dom-module><script>Polymer({is: 'fav-color',properties: {owner: {type: String,value: "Daniel"},color: {type: String,value: "red"}},
_setColorStyle: function(color) {
return "color: " + color;}});</script>
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/09b28089-80d4-4925-831d-77dbaaca9eef%40googlegroups.com.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.