The asterisk (
*) is used by ECMAScript 6 to mark generator-related constructs . In each case, you have considerable freedom w.r.t. adding or omitting whitespace before and after this character. This blog post explains how to best format the asterisk and why.
ECMAScript 6 (ES6) still sounds like something from a far-away future. After all, it will only become a standard by mid 2015. However, its features are continually appearing in browsers and there are compilers that translate ES6 code to ES5 code. The latter is already a compelling solution, because the ECMAScript 6 feature set is already frozen.
This blog post gives a brief overview of ECMAScript 6 features and describes tools that enable you to use them today.
- via dispatch, e.g.
- directly, e.g.
someFunc.call(thisValue, arg0, arg1)
This blog post explains how these two work and why you will rarely call methods directly in ECMAScript 6.
A key feature of AngularJS 2.0 is its support for Web Components . Google’s Polymer is a Web Component polyfill (enabling them on all current browsers) and a framework on top of Web Components. This blog post describes how the Angular team sees the roles of AngularJS and Polymer.
The roles, according to the AngularJS team
AngularJS 2.0 team member Rob Eisenberg recently explained the relationship between AngularJS and Polymer:
- Denial: “I won’t need this language.”
- Anger: “Why does the web have to be so popular?”
- Depression: “Programming is not for me, I’ll pursue a career in masonry, like I always wanted.”
- Acceptance: “I can’t fight it, I may as well prepare for it.”