Getting Started with ECMAScript 6 for AngularJS
ECMAScript 6 (ES6) is around the corner. It is in the last step of specifications and every browser have started implementing its features.
However, only fewer developers have started writing with it, the reason: partial support. Indeed, as for May 2015, there is still a lot of work to do. Even Chrome/Webkit, which is considered for many as the ultimate browser, is only at a mere 50% whereas the most hated browser known as IE, as for the latest release, is beating them all with a full 72%.
But there is no fear to have, because nowadays, we have transpilers.
What are transpilers?
Transpiler = Transformer + Compiler.
The two most famous transpilers out there are Traceur Compiler and Babel (formerly 6to5), though Babel is way more advanced than Traceur to this date.
Thanks to transpilers and task runners, it is now possible to write ES7 compliant code without having to wait for the next browsers.
For more information, take a look at the presentation I made for the ng-conf: https://slides.com/eliorboukhobza/angular-ecma6