kittencup / angular2-ama-cn

angular2 随便问
691 stars 101 forks source link

如何用ES6开发Angular2应用 #165

Open zhangchen915 opened 8 years ago

zhangchen915 commented 8 years ago

官网的给的javascript例子太简单了,又不打算使用TypeScript开发,请问有没有一些demo或者教程介绍使用ES6开发Angular2应用。虽然Bable能编译修饰符,但是如果不用修饰符怎么写?

zhangchen915 commented 8 years ago

如果不是.ts 文件 webstorm好像还没提示

hstarorg commented 8 years ago

虽然用JS可以编写,但是写起来很变态。如果你不想学习ts,可以考虑直接在ts文件中写js代码的方式来编写。

kittencup commented 8 years ago

同楼上 请使用ts..否者很痛苦

hstarorg commented 8 years ago

@kittencup 尝试过用JS,折腾死了。现在还是换成ts了。

ghost commented 8 years ago

建议ts