polymer dart vs polymer js: does it matter when using the component?

好久不见. 提交于 2019-12-07 09:18:06

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/24274450/polymer-dart-vs-polymer-js-does-it-matter-when-using-the-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!