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

后端 未结 7 1602
暗喜
暗喜 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:15

    TypeScript will be just a superset of ES6. And ES6 is a superset of ES5. Which means, ES5 is valid TypeScript and ES6 after all. Despite some specific features, for now a lot of what we get from those languages is syntactic sugar.

    Here's an article that shows you how to write Angular 2 code in ES5.

提交回复
热议问题