Currently, for registration, the tag name must be provided in 2 places:
<polymer-element name="x-foo"> <!-- #1 -->
<script>
Polymer("x-foo",{}); // #2
</script>
</polymer-element>
Maybe DRY it up and infer the tag name in the script portion of the registration:
<polymer-element name="x-foo">
<script>
Polymer({}); // nope
</script>
</polymer-element>
I would also assume using external script should work aswell:
<polymer-element name="x-foo">
<script src="x-foo.js"></script>
</polymer-element>
https://groups.google.com/d/msg/polymer-dev/rwX2y0RhNaQ/HyKh3N7WvLMJ
Thanks!
Currently, for registration, the tag name must be provided in 2 places:
Maybe DRY it up and infer the tag name in the script portion of the registration:
I would also assume using external script should work aswell:
https://groups.google.com/d/msg/polymer-dev/rwX2y0RhNaQ/HyKh3N7WvLMJ
Thanks!