Angular 2, a re-architected, rewritten version of the popular JavaScript framework also known as AngularJS, goes to a beta release stage today, with general availability planned for early-2016.
The upgrade features enhancements for speed in rendering and updating pages, near-initial rendering, and support for building cross-platform native mobile apps for Google Android and Apple iOS. "It's eight times faster than Angular 1," said Brad Green, Google director of engineering in charge of Angular.
"We built the change detection algorithm so that all of its commands are generated so that they can be inlined by the JavaScript virtual machine," leading to faster change detection, said Green. Version 2 also takes advantage of processor registers instead of relying on a virtual table lookup; the upgrade ensures the virtual machine always knows what type, such as int, string, or float, is coming in.