Is it possible to use ES5 JavaScript with Angular 2 instead of TypeScript?
问题 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 compile to JavaScript to be executed, but I haven't seen any reference to use ES5 JavaScript directly. 回答1: Yes, you can. Go read this guide. Pressing the ES5 tab on the code examples will show you regular ES5 JavaScript, as apposed to TypeScript. The API preview is, for obvious reasons, incomplete though. So you may not find the ES5 methods