I currently have a component like this:
<polymer-element name="my-widget" constructor="MyWidget"> <script> Polymer('my-widget', {}); MyWidget.someGlobalConfigValue = 1234; </script> </polymer-element>
Are there other approaches to this that I should consider?
(aside: it would be neat if Polymer() returned the constructor, so I don't need to force the name)
polymer
Nevir
source share