AngularJS 2.0 rewritten in ECMAScript?

So I just found out today that Angular 2.0 is coming out, they are using ECMAScript 6, but compiling it to 5, etc., etc., etc.

How will that (using ECMAScript) affect the usage? How will it be compatible with the JavaScript I use to call its API? I mean, having different languages (ES, JS) written together?

Confused at how this works. Help is appreciated.


Sorry @Joseph if my question wasn’t clear enough, but I also (mainly) want to know how ECMAScript 5 runs in the browser and the second paragraph above keeping this in context.

How does a JavaScript person use Angular 2.0? How does ES work alongside JS code?

From the docs:

Though Angular will be in ES6, you can still write in ES5 if you don’t want to upgrade. The compiler generates readable JS and there are human-sensible analogs for the extensions.

I suspect that ES can be run by JS interpreters(?)

Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
newest oldest most voted
Notify of

AngularJS 2.0 rewritten in ECMAScript? Seems like you’ve mistaken ES for another language. ES (ECMAScript) is a standard which JavaScript language is based on. It defines the rules and behaviors of JS and other languages based on it. ES5 is the 5th revision, ES6 is the upcoming revision at the time of writing. they are using ECMAScript 6, but compiling it to 5 Pretty much every browser today is ES5 compatible while not so with ES6. There are incentives to using ES6 like the new API and very convenient syntax – but these aren’t present in ES5. In order for… Read more »