Dart使启动变得很容易,因为Dart生态系统(语言、包管理、构建等)为您提供了所需的一切.
TypeScript
TS拥有最多可用资源(文档等)因为有庞大的用户群.
The Dart and JS version of Angular is generated from TS.
There seem to be lots of issues to get a Angular+TS project up and running (see Angular2 questions here on SO) but there are seed projects available where everything is set up already. I don't know details because I'm using only Dart myself.
For TS there is now 100 which improves the developer experience a lot for Angular2 with TypeScript.
JavaScript, ES5, ES6
如果你是JS纯粹主义者,它可能是适合你的语言.如果不是(如果你是,你可能不会问这个问题),那么我很确定你最好使用Dart或TS.
Dart
Dart是一种很好的语言,有一套工具可以很好地协同工作.
大约在2016/05年,Angular2 Dart是一个独立的项目,与TS和JS版本(截至2016/10年)有很大不同.
路由模块在TS中被多次替换,以使其与脱机模板编译一起工作,但在Dart中没有被替换,因为在Dart中,延迟加载也可以与"旧"路由一起工作.
... NgModule
也不是因为同样的原因才被引入Dart的.
为TS构建的新表单模块尚未移植到Dart.
Dart从一开始就进行离线模板编译,但不支持浏览器平台动态编译运行时的组件.
一个新的依赖注入模块似乎正在基于Dagger2(目前尚不可用)为Dart开发,以取代由TypeScript代码自动生成的DI系统.
Angular2 Dart非常关注构建输出大小和运行时性能,但AFAIK对多平台支持(如服务器端渲染)的支持已被放弃.