victorsavkin.com/post/72452331552/angulardart-for-angularjs-developers-introd...

AngularDart is a port of the acclaimed framework to the Dart platform. It is being developed by the Angular core team. In this article I will compare the Dart and JS versions of the framework. In particular, I will look into dependency injection, directives, and digesting.

Intended Audience

The article is written for:

Dart developers who have some experience with AngularJS.

AngularJS developers thinking about trying out AngularDart.

AngularJS developers who are not going to switch to Dart, but want to know more about the future of the framework. According to Angular folks, many of AngularDart’s features will be ported to AngularJS at some point. So learning about the Dart version of the framework can be interesting, even if you are not planning to use it.

Dependency Injection

Injection by Name VS Injection by Type

AngularDart makes interesting use of the Dart optional type system: it uses type information to configure the injector. In other words, the injection is done by type, not by name.

//JS: // The name here matters, and since it will be minified in production, // we have to use the array syntax. m.factory(


Comments (0)

Sign in to post comments.