how to do automated browser testing with Dart?

Is there any headless browser for dart? Or a wrapper for something like selenium? My goal is to use the browser for automated end-user testing for a website i wrote years ago. Now i need to make few changes on the site. Since it contains specific bu...
more »

2017-02-13 19:02 (2) Answers

Disable strict/checked mode in Dart Angular

I'm using WebStorm and Dart Angular and I'm having trouble with some kind of strict or checked mode. Whenever I run the application using default WebStorm configuration, I get failed assertions Observer reaction functions should not change model., b...
more »

2017-02-13 10:02 (1) Answers

Install Dart's package using Ansible

I've the following Ansible task to install Dart: --- # Install Dart # Based on: # - # - - name: install apt-transport-https required by Dart apt: pkg=ap...
more »

2017-02-13 03:02 (3) Answers

Dartlang: Using enums in Angular2 templates

can someone tell me if and how it is possible to use Dart enums in angular2 view templates? It's suggested in Typescript to copy the enum into a component-scope. This works because an enum in javascript is a simple instance variable with a prototy...
more »

2017-02-11 22:02 (1) Answers

Dartlang wait more than one future

I want to do something after a lot of future function done,bu I do not know how to write the code in dart? the code like this: for (var d in data) { d.loadData().then() } // when all loaded // do something here but I don't want to wait them one ...
more »

2017-02-11 13:02 (1) Answers

Can't figure out how to load yaml document in Dart

According to the readme for the Dart-Yaml pub package, I should be able to do the following: var db = loadYamlDocument("db.yaml"); with print(db['hostname']); giving me the value I have specified for port in that yaml, however I'm told that YamlDoc...
more »

2017-02-10 16:02 (2) Answers

Angular2-Dart PathLocationStrategy

Refreshing angular2 dart page using HashLocationStrategy works fine as it opens the exact same view. Refreshing the page using PathLocationStrategy - with tomcat server configured to serve index.html - works for the url without param...
more »

2017-02-10 02:02 (0) Answers

Get all input elements

I have a form: <form id="form"> First name:<br> <input type="text" name="username" id="username"><br> Last name:<br> <input type="text" name="password" id="password"><br><br> <input type="...
more »

2017-02-08 14:02 (2) Answers

Combine Input stream

I have two inputs element and want to listen KeyUp event on it. <form> First name:<br> <input type="text" name="username" id="username"><br> Last name:<br> <input type="text" name="password" id="password"&g...
more »

2017-02-08 09:02 (1) Answers

Angular 2/Dart: Binding multiple events at once

In a Angular 2 / Dart Template I have the following line of code: <input (keyup)="addressChanged('destination')" (change)="addressChanged('destination')" type="text" value="" /> Is there a syntactical way to bind multiple events at once? L...
more »

2017-02-07 19:02 (0) Answers

Dart: how to manage concurrency in async function

I really like the async/await pattern in Dart. It allows me to write readable methods. But, there are a couple of things that are problematic, one in particular, I don't know hot to manage at all. The problem is that with async and multiple await i...
more »

2017-02-06 16:02 (4) Answers

AngularDart with Playframework 2.5

I am at the beginning phase of a application development. I just came to know about Dart and AngularDart. I am Java programmer, and naturally Dart as drawn my interest. It would be interesting to know, if Play framework supports Dart. Has anyone al...
more »

2017-02-05 23:02 (0) Answers

Dartlang: Dev Transformers in pubspec.yaml

I want to know if there is a possibility of defining "development only" transformers in a pubspec.yaml file. My Problem is: I have some angular2 components in separate repositories. I have written some examples for them in their respective example...
more »

2017-02-04 16:02 (1) Answers

What is the significance of @ operator?

I noticed that there is a @ operator in some of the classes. For example, @TestOn("!vm") ..... When I dig further TestOn is a class. class TestOn { /// The expression specifying the platform. final String expression; const TestOn(this.exp...
more »

2017-02-03 23:02 (1) Answers

Dart: generic methods not working

I have a problem with generic methods. Just to make an example I have generated a new project in WebStorm with Angular2. I'm using dart 1.22.0-dev 10.1, but I had the problem also with dart 1.21.1. I have added a single class in the app_component.dar...
more »

2017-02-02 15:02 (1) Answers

How to create a generic method in Dart?

I'm trying to use generic methods in Dart (1.22.0-dev.10.3). Here is a simple example: abstract class VR<T> { VR(); bool foo<T>(T value); } class VRInt extends VR<int> { VRInt(); bool foo<int>(int n) => n > ...
more »

2017-02-02 15:02 (2) Answers

Grouped elements in Angular2 *ngFor

I'm looking to achieve the following with Angular2, for every entry in a list, have a tr tag with several columns and then another tr tag (or two) that spans all the columns. <table > <tbody> <tr> <td>...
more »

2017-02-01 06:02 (2) Answers