Does Polymer evaluates expressions inside shadow DOM tags, with the purpose
of adding attributes to an element?
For example, should this work? (I tried and it did not)
<template>
<div id="ct" {{ propContainingAttributeName }}></template>
</template>
Is there a proper way of inserting attributes on an Shadow DOM element
using Polymer?
Based on the results of my test, it seems that for now expressions are only
evaluated if typed on an attribute value place holder or as a part of the
inner HTML of an element.
<div id="ct" class="{{ expression1 }}"> {{ expression2 }}</div>
Expressions typed inside the declaration of an element (e.g <div {{
expression }} ></div>) are not evaluated.
Would this be a desirable Polymer feature?
Is this something possible to accomplish, regarding the involved
architecture?
Cheers,
Sam
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/3a81aafd-c729-432b-957e-0b7687df85c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.