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.

see https://code.google.com/p/dart/issues/detail?id=17472


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -