how to implement a main function in polymer apps

index.html <head> <!– <link rel=”import” href=”https://stackoverflow.com/questions/20982489/packages/polymer/polymer.html”> not necessary anymore (only in elements)–> <!– <script src=”packages/web_components/platform.js”></script> not necessary anymore with Polymer >= 0.14.0 –> <!– <script src=”packages/web_components/dart_support.js”></script> not necessary anymore with Polymer >= 0.15.0 –> <!– old –> <script type=”application/dart”> export ‘package:polymer/init.dart’;</script> <!– new –> <script type=”application/dart”>export ‘index.dart’;</script> </head> <body> … <!– … when you use … Read more