tag:blogger.com,1999:blog-581197352358126527.post3725060357873572451..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Polymer.dart: Best in JavaScript?Anonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-581197352358126527.post-42123688065254859752014-06-07T00:14:09.071-07:002014-06-07T00:14:09.071-07:00FYI, I encountered the same issue (detail being nu...FYI, I encountered the same issue (detail being null) with polymer 0.10.0-pre7, but I was able to get the value thanks to jsinterop. It's not the most straightforward way of retrieving and assigning a value, but it works:<br /><br />querySelector("core-ajax").addEventListener("core-response", (e) {<br /> var jsResponse = new JsObject.fromBrowserObject(e)['detail']['response'];<br /> new JsObject.fromBrowserObject(querySelector('#foo'))['model']['response'] = jsResponse;<br />}<br /><br />I just updated to 0.10.0, and after the tweaks to reintroduce a main function, removing ";component=1" and the init decorator, it's working as well there.<br /><br />For reference, I asked about it on https://groups.google.com/a/dartlang.org/d/msg/web/NN2CumFaQ8k/MfgYzjiuu_MJ and you have the explanation why it's not working on dartium, but it does work once compiled to javascript :)Didier Rochehttps://www.blogger.com/profile/13563577078543251542noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-43414021985572571602014-06-06T08:29:36.916-07:002014-06-06T08:29:36.916-07:00Quick question. I understand compiling to JS, but...Quick question. I understand compiling to JS, but do you need to use bower to load a library of core-* elements? Or because the core-* elements are included in the JS version of polymer you get access to the elements when it compiles to JS and uses the JS version of polymer (basically you just have to load the polymer library in Dart to get core elements in JS)?Stevehttps://www.blogger.com/profile/04033612318837386100noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-30983797993648822822014-06-05T08:34:39.258-07:002014-06-05T08:34:39.258-07:00Polymer Designer is the future of web development....Polymer Designer is the future of web development. Watch this video: https://www.youtube.com/watch?v=djQh8XKRzRg<br />The real question is: will the future web be built with Javascript polymers or Dart polymers?Emanuele Sabettahttps://www.blogger.com/profile/02338185683703836652noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-44808591779894474812014-06-04T15:55:05.673-07:002014-06-04T15:55:05.673-07:00Quick tip, use the drag-drop branch, it has a drag...Quick tip, use the drag-drop branch, it has a draggable list of components on the left hand side, which is missing from the other two branchesJameshttps://www.blogger.com/profile/02075826729346305568noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-10187658614824514642014-06-04T13:30:57.651-07:002014-06-04T13:30:57.651-07:00I haven't hard a chance to play with it yet, b...I haven't hard a chance to play with it yet, but it looks pretty cool :)Anonymoushttps://www.blogger.com/profile/00135361916531185929noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-30684708565296922062014-06-03T22:53:24.928-07:002014-06-03T22:53:24.928-07:00Have you seen this? https://github.com/Polymer/des...Have you seen this? https://github.com/Polymer/designer It's JS elements only, but still quiet cool to see what you can do, visually, just Polymer Components.Jameshttps://www.blogger.com/profile/02075826729346305568noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-39883742427804044442014-06-03T21:44:51.649-07:002014-06-03T21:44:51.649-07:00And I wish they would hurry up and release the Dar...And I wish they would hurry up and release the Dart sanitised versions for us.<br /><br />I have written some Python scripts to help sanitise the Polymer JS Elements for Polymer Dart consumption, since I don't want to do it manually everytime I do an update with bower. Times like these I am tempted to go completely JavaScript for Polymer projects. I'm sure they don't have the problems we have with Dart. I'm not that tempted though.Jameshttps://www.blogger.com/profile/02075826729346305568noreply@blogger.com