9
I Use This!
Activity Not Available

News

Posted over 9 years ago by Chris Strom ([email protected])
Regardless of the solution that I use to double bind variables between Angular.dart and Polymer.dart, I need to test it. Without tests, I will have no warning when new versions of the libraries break the last working version.Before getting to the ... [More] actual test, I need to make a change to the pubspec.yaml. Oddly, the latest versions of Angular.dart and Polymer.dart are incompatible—they have conflicting dependencies. Luckily, Dart Pub comes with a built-in solution for this, dependency_overrides. This setting lets application developers say, “I love you package X and I know you think that... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
I was able to get double binding working between Angular.dart and Polymer.dart last night, thanks mostly to the angular_node_bind directive. For demonstration, I bind the JSON from the <x-pizza> Polymer element into an Angular scope variable ... [More] for display:Jyrki Grohn was kind enough to remind me that there should be an easier way to accomplish this in Angular.dart version 0.14 (which I am using). Angular.dart now boasts bind-* syntax for double binding properties between Angular.dart and Polymer. So let's see how it works.Unfortunately,... [Less]
Posted over 9 years ago by Davy Mitchell ([email protected])
Hello! 'Diving Into Dart' has been on hiatus but I am getting things line up to get it going again. I happened upon my first ever Dart project - a conversion of my Python game Drone Onslaught. Unfinished but playable! Hope you enjoy it. Code should appear somewhere soon. How to play : Use Arrow Keys To Move and 'S' to fire. Click here to play.
Posted over 9 years ago by Chris Strom ([email protected])
Last night I was able to get Polymer.dart and Angular.dart working together again. But I don't have them working together yet.I have my <x-pizza> Polymer element working within an Angular partial:But I do not have the two communicating. When I ... [More] originally wrote the Angular & Polymer chapter in Patterns in Polymer, I was able to reflect changes from the Polymer element back into the Angular application through the use of angular_node_bind. That was a long time ago, let's see if it still... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
Thanks to a tip from James Hurford, I have a far better approach to working with the “wildly” incompatible Polymer.dart and Angular.dart libraries. Instead of hacking on a forked version of Angular.dart, as I did last night, I instead use Dart Pub's ... [More] dependency_overrides option. I am simply not going to start hacking on Angular.dart to get Polymer elements working inside an Angular.dart application—especially not as a solution for Patterns in Polymer. Overriding the minimal dependencies found from last night gives me the best chance of working with the most recent Polymer... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
I am desperately trying to get all chapter projects under test in Patterns in Polymer. I have the JavaScript chapters done and am now working through the Dart versions of those same chapters. For most chapters, I already have tests, but sadly one ... [More] chapter that lacks tests is the Angular.dart chapter. Hopefully I can mostly reuse the approach that I took in the AngularJS version of the chapter, which is admittedly less that great coverage, but infinitely better than what I have currently for the Dart code. But first I need to... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
I have spent a lot of time trying to test keyboard events in Dart. A lot of time. And all with no success. Until last night.As a side note, there is a school of thought that says that you cannot really know a language until you know its weaknesses. I ... [More] generally have a tough time thinking of these on the spot so I keep a few in my proverbial back pocket. For the longest time, my greatest Dart annoyance... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
I thought I had the internationalization project code for Patterns in Polymer 100% solid. It turns out that I missed one thing: the bound variable in a pluralization is not updating properly.After last night, I have <hello-you> element ... [More] localization into English, Spanish, and French working just fine. I can start the element localized or change it on the fly. All except the number of red balloons the user currently happens to own:As I found last night, this is not completely broken. Only the bound variable... [Less]
Posted over 9 years ago by Anders Thorhauge Sandholm ([email protected])
We are always working on providing new APIs for Dart. If you have been using Google services from Dart, we are happy to say that the Dart Team is now supporting a client library for accessing a set of APIs to Google services.Most Google services have ... [More] an API described by the Google Discovery Service. This includes both Apps APIs (such as Gmail and Drive) and Cloud APIs (such as Cloud Datastore and Cloud Storage).Based on previous work by GDEs... [Less]
Posted over 9 years ago by Chris Strom ([email protected])
I think my Polymer.dart element is broken. Somewhere in the various upgrades to Polymer.dart, the internationalization project code for Patterns in Polymer stopped working. It sure would have been nice had my continuous integration server been ... [More] working when that happened, but I can only change the future. The problem is not that localization does not work at all. When I specify the locale with an attribute (<hello-you locale="fr"><hello-you>), it localizes just fine:The problem occurs when changing locales with the drop-down menu. Specifically, the labels... [Less]