I want to build a polymer component. I can build it using Javascript. I can build it using Dart.
For the person using it (me, someone else), does it make a difference or is the polymer packaging hiding all the magic inside?
I want to build a polymer component. I can build it using Javascript. I can build it using Dart.
For the person using it (me, someone else), does it make a difference or is the polymer packaging hiding all the magic inside?
When you build it in JavaScript you should be able to use it in Dart. There are some problems and it might need some manual tweaking to make it work. This is work in progress and will become easier soon (for example bower support for Darts pub
).
There is a package that helps generating a wrapper for Polymer.js elements to be easily used in Dart https://pub.dartlang.org/packages/custom_element_apigen
When you build it in Dart you can use it only in a Dart application but not in a JavaScript app.
This may change in the future but not to soon I guess but as I understand it this is work in progress.