BT

AngularJS Is Being Ported to Dart

by Abel Avram on Jun 13, 2013 |

AngularJS is being ported to Dart, offering a parallel implementation of Google’s JavaScript framework.

Brad Green, Engineer Director at Google and Manager of AngularJS, has announced the porting of their JavaScript framework to Dart during a meeting outlining some of new features coming in AngularJS 1.2 (video, min. 40). The idea is to provide the same templates but different implementations. Angular.dart is not a wrapper calling JavaScript but is actually written in Dart.

While still work in progress, Angular.dart has a number of key components already ported, such as the compiler, scope, and expressions, and a number of directives are done: bind, repeat, shadow DOM. Also, testing has been ported. DI and Routes are next.

Green said they are not going to replace JavaScript with Dart, but rather provide a parallel AngularJS implementation for Dart.

AngularJS is growing in popularity and the porting to Dart announcement has been well received if we consider the comments both on the initial announcement and on Seth Ladd’s subsequent post. Ladd is a Google engineer working on Dart, and has welcomed Angular.dart:

It's still early, but how exciting! We've always encouraged a rich ecosystem, and there are a lot of fans of Angular.

But this porting raises some questions. What will happen with the common functionality now provided both by Dart and Angular.dart, such as Web UI and Routes? Ladd said that Angular.dart won’t replace existing Dart functionality, but rather complement it:

[Angular.dart] doesn't replace Web UI. Web UI is a bet on modern and emerging web specs such as Web Components  …

We're working on a routes package: https://github.com/dart-lang/route  We don't have it wired into Web UI fully, but it'll still work with Web UI.

It remains to be seen what role Angular.dart will play in Dart’s future. Will Angular.dart be eventually included into the Dart project? Perhaps it depends on Angular.dart’s popularity among Dart users. And the majority of those users are inside Google.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT