dart - Is it allowed to use any type for a @published attribute in a polymer element? -
i have custom polymer element :
@customtag('my-game') class gameelement extends polymerelement { @published gamestate state; // ..... }
and use :
<my-game state="{{ state }}" />
as attributes
property on element map<string, string>
allowed use type @published attributes?
yes works.
use assign model classes parent child elements.
do have issues it?
an issue is, dom doesn't see attribute being added.
in unit test tried use mutationobserver notified when attribut set,
works when primitive value assigned.
Comments
Post a Comment