ダーツでは、カスタマイズされた要素が main() 関数と通信するようにする必要があります。Dart-polymer-example ( https://github.com/sethladd/dart-polymer-dart-examples/blob/master/web/custom_element_with_custom_attribute_binding/index.html )の例で指摘されているように、現在バインディングは機能しません。 .
<template id="tmpl" bind>
<my-element value="{{value}}" id="test"></my-element>
<!-- This should be updating, but it's not updating -->
<!-- See http://code.google.com/p/dart/issues/detail?id=12440 -->
<p>The model's value is {{value}}</p>
</template>
「query("#test").attributes["value"]」など、いくつかの代替方法を試しましたが、機能しません。他に試す方法はありますか?
ありがとう!