Is it possible to use ES5 JavaScript with Angular 2 instead of TypeScript?

后端 未结 7 1582
暗喜
暗喜 2020-12-16 15:46

Is it needed to learn TypeScript for Angular 2?

Can Angular 2 be used with plain JavaScript ?

Edit: I\'ve seen that the languages used as ES6, ES7, Dart comp

相关标签:
7条回答
  • 2020-12-16 16:28

    @jordiburgos Is it needed to learn TypeScript for Angular 2? It is the recommended language by the angular team, and i can say from personal experience, that using es5 in a medium to large projects can be very hard to maintain over time because of its lack of key features like typing, classes and inheritance.

    Can Angular 2 be used with plain JavaScript ? Yes, and you have some good examples above. Consider it carefully, go and review a comparisons like this one: https://johnpapa.net/es5-es2015-typescript/

    0 讨论(0)
提交回复
热议问题