Sunday 15 February 2015

dart - Access static field in polymer expression -



dart - Access static field in polymer expression -

it possible access static fields in dart polymer expression?

in template need access static value know class, how can access in polymer expression?

i don't know of way access directly. think need create getter polymer element want utilize value.

you can create mixin provides access static values.

another solution create component provides access static values , utilize like

class="lang-dart prettyprint-override"><polymer-element name="xx-yy"> <template> <my-const id="my-const"></my-const> <template if="{{$['my-const'].isdebug}}"> debug output </template> </template> </polymer-element>

dart dart-polymer

No comments:

Post a Comment