How to initialize an instance of the custom element declared in an entry page?
For example:
<!-- index.html -->
<polymer-element name='my-elm' attributes="count" noscript>
<template>
<span>{{count}}</span>
</template>
</polymer-element>
<my-elm id="my-elm"></my-elm>
// index.dart
(querySelector("#my-elm") as dynamic).count = 1;
When I attempt to initialize count propery of my-elm
polymer element instance I get the following execption: Breaking on exception: Class 'HtmlElement' has no instance setter'count='.
What is wrong in my code?