Should my <script> be inside my <dom-module>?
问题 I've been developing with polymer and I've always put my <script> tags inside my <dom-module> tags. E.G: <dom-module id=""> <template> <style> </style> </template> <script> Polymer({}); </script> </dom-module> But I've also seen the <script> tags put outside of the <dom-module> tags. E.G: <dom-module id=""> <template> <style> </style> </template> </dom-module> <script> Polymer({}); </script> Both ways seem to work fine. Which way is considered correct though? Can you explain? 回答1: The dom