Hi,
I have a problem with the *$=* operator.
I've got a component I've created, call it "*somecomponent*". This
component works just fine but I want to add a class to help me customize
some stuff. This class will be fetch from a datasource.
I create a property like this:
properties: {
somevar: {
type: String,
readOnly: true
},
...
I pass the value while creating my component in my webpage as such:
<somecomponent somevar="<?= $datasource['somevar'] ?>"></somecomponent>
and use it in my
<div class$="{{somevar}}"></div>
When I look in the Google Chrome inspector, I see the
<somecomponent somevar="somevalue"></somecomponent>
But in the div, I always see
<div class="style-scope somecomponent"></div>
What am I doing wrong?
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/6059e8c1-82b0-4e9a-ae5c-356dc144f217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.