Setting the property as readonly means you cannot assign a value to it using
the declarative markup in your page. This has the effect that the component
discards the value you set in the attribute in the html.
Normally you would set the value statically in the property definition in your
component when defining the property as readonly. To be able to assign a value
to the property from outside the component via html markup then you need to
remove the readonly setting.
--
From: André Jacques
Subject: [polymer-dev] Usage of $= to bind dynamic value into a classattributes
I create a property like this:
properties: {
somevar: {
type: String,
readOnly: true
},
...
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/56285478.294fb40a.5301a.6c22%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.