Three Reasons We're Excited About AngularJS 2

Bixal developers have been using AngularJS for some time, building dynamic, high-performance, API-driven enterprise applications that bring the user interface to life for our clients and the people they serve. We love Angular’s core concept - extending the capabilities of HTML in order to deliver powerful yet lightweight web apps. With the release of AngularJS 2.0, Google has essentially gutted and rebuilt the framework while doubling-down on the Angular approach. Here are three reasons why we’re excited:

  • Cleaner code, easier troubleshooting. Google and Microsoft have partnered in an initiative to include Typescript syntax as a “suggested” option (you can use Angular 2.0 without Typescript, but it is optimized to be used with it). Typescript's main task is to teach JavaScript about variable types. Proper usage of Typescript will make large-scale applications easier to debug and modify.

An illustration of AngularJS 1 vs 2

In developing 2.0, Google has focused on implementing new technologies as foundations to the framework. Support for ES2015, the newest release of the JavaScript protocol, is among the more notable differences. ES2015 introduces new ways of handling dependency injection in Angular, and adds the concept of “classes” to JavaScript. These improvements will help to avoid those huge “code pyramids”.

  • Native app development. Angular 2.0 supports NativeScript, which allows Angular developers to tap into native development for iOS and Android devices (Windows Phones coming soon). In other words, you can create an iPhone app with Angular, CSS, and HTML! NativeScript is currently very functional, but is still lacking in some areas (e.g. support for media queries). We’re confident it will continue to improve, especially now that it has Angular spurring it along.
  • Flexible, scalable component-based architecture. First introduced as Directives in AngularJS 1.x, Angular 2.0 has a greater focus on component-based structures. This is more in line with trends in the JavaScript framework world, and is similar to the approach taken by the popular React library. Working with component-based structures yields code that is more reusable. This means less coding, reduced code maintenance, and ultimately greater flexibility.

AngularJS 2.0 presents a substantial learning curve for developers, even for those of us who are comfortable with AngularJS 1.x, but we’re looking forward to the potential for more readable code with greater efficiency to help drive the next generation of cutting-edge web applications. With Google's significant investment in the framework, we are offered assurance that it will continue to evolve and there will be an active support community for the foreseeable future.