It did the trick :) Thanks.
On Wednesday, October 21, 2015 at 10:54:56 PM UTC-4, André Jacques wrote:
>
> 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/b382f77d-9881-4039-884b-2cd9fcb01204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.