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