Of course I usetypescript了,ts是ng2的官方语言,除了让你能用 IDE 开发程序外, 还是 js 的超集, 相当于 ES7 + (兼容动态类型的)静态类型系统. 这比babel什么的转译器好哪去了, 除非有些人在完全无知的情况下反ts, 或者你已经习惯js(accept its various pitfalls), I don’t want to spend time understanding other things, otherwise there is no reason not to use it.
Both ts and js are acceptable. It depends on the needs of the team. If team members feel that converting ts is expensive, then use js. es6 is already very powerful. I guess the ts language will slowly disappear. After all, es has started to be updated once a year. tsc will eventually be a translation tool like babel. The latest tsc can already translate js. es is updated every year and will not have many new features compared to ts. I personally think it is better to use the es6 version of js, both in terms of team learning costs and Future upgrade costs will be minimal.
Of course I use
typescript
了,ts
是ng2
的官方语言,除了让你能用 IDE 开发程序外, 还是 js 的超集, 相当于 ES7 + (兼容动态类型的)静态类型系统. 这比babel
什么的转译器好哪去了, 除非有些人在完全无知的情况下反ts
, 或者你已经习惯js
(accept its various pitfalls), I don’t want to spend time understanding other things, otherwise there is no reason not to use it.If you want complete documentation, typescript, if you want cool, then dart, I am using dart now
typescript it
Both ts and js are acceptable. It depends on the needs of the team. If team members feel that converting ts is expensive, then use js. es6 is already very powerful. I guess the ts language will slowly disappear. After all, es has started to be updated once a year. tsc will eventually be a translation tool like babel. The latest tsc can already translate js. es is updated every year and will not have many new features compared to ts. I personally think it is better to use the es6 version of js, both in terms of team learning costs and Future upgrade costs will be minimal.
It’s time to start using Dart.