Is there a way of getting the list of all published properties defined in a polymer component? (e.g. get the available properties of component public API)
<polymer-element name="sample-component"
attributes="foo1 foo2" bar="10">
/* ... */
</polymer-element>
<sample-component foo1="5"></sample-component>
document.querySellector('sample-component').attributes;
// returns bar and foo1 (which have a value assigned to them)
// but I want to get foo1 and foo2
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…