Angular 2 for Dart is only a dependency away

Angular 2 is shaping up to be an awesome framework to build web applications.

Dart is awesome.

One thing really cool about Angular 2 is that it’s built for Javascript-Typescript and also for Dart. It’s really simple to get started with the Dart version, in fact it’s easier than it’s counterpart.

If you want to build an Angular 2 application with ES6 or TS you are quickly confronted with multiple choices and questions, like:

  • Should I use Babel, Traceur or Typescript?
  • How should I structure my application?
  • Should I use SystemJs, Webpack, JSPM or Browserify? Do I need bower?
  • What about Grunt, Gulp and Broccoli?
  • … Type definition files, hmm I need tsd (Type definition manager)
  • es6-promises, rx, rx-lite?
  • Which code minifier, dead code eliminator and API doc generator should I choose?

You are overwhelmed with choices even before you write a line of code

With so many options to choose from, people find very difficult to choose at all. — Barry Schwartz

With Dart the only choice comes from using the framework, code is compiled by pub so no need for transpilers or build tools, the project layout follows a consistent convention, also the equivalent of es6-promises and rx are part of the core libraries as Futures and Streams.

Dart gives you the right amount of choice

To get started with the Angular 2 for Dart you only need to add the angular2 and browser packages to your pubspec.yaml

dependencies:
angular2: "^2.0.0-beta.1"
browser: "^0.10.0"

I would say that if you like the features that ES6-ES7 and Typescript provides, you should try the Dart version of Angular 2. It will feel like home.

Use my quick start repo

Angular 2 quick start guide

Happy coding!

Show your support

Clapping shows how much you appreciated Andres Araujo’s story.