Posted By Sebastian

Why Angular 2 Will Be Big in 2016

Back in March 2014 Angular 2 has first been announced by the Angular team. Since then the next version of Google’s popular web application framework has taken a long way and has arrived in beta state on 15th of December 2015. That is a huge step toward the final release and now everybody is able to see what Angular 2 is really about.

Back in 2014 is was regarded as a revolution as the Angular 2 team decided to do a complete re-implementation of the framework and skip with many of the concepts from AngularJS 1.x. Many developers started yelling and became afraid of what the future of Angular will bring. What to do with existing AngularJS 1.x code? Why is this massive change needed? Why not stick with existing concepts? Do I have to learn everything new?

The answers to that questions are much clearer now. The problem back in 2014 was that people were not ready yet for the upcoming revolution, because:

  • ECMAScript 2015 was 12 months away from standardization
  • AtScript (which was used in Angular 2 before TypeScript has been introduced) was not known and sounded like an awkward concept
  • Componentization was not state-of-the-art in web development
  • The migration path from AngularJS 1.x to Angular 2 was unknown

Since than many things have changed. The React framework evolved and spread in the web developer community. With React the componentization approach becomes well accepted and the advantages are now fully clear. The development of Angular 2 did not stop and TypeScript was introduced as the standard language for writing Angular 2 code. ECMAScript 2015 has been released and Angular 2 is now one of the first frameworks which are following the concepts of ECMAScript 2015 consequently. Furthermore a clear migration path from AngularJS 1.x to the upcoming version has been introduced. If you want to learn more about the migration path check out the great introduction here.

Learning Angular 2 Is Easy

… really easy, just try it!

Although most people expect Angular 2 to be hard to learn (due to the many new concepts) quite the opposite is true. Implementing a simple Angular 2 component is as simple as what you can see in the following:

import {Component} from ‘angular2/core’;

selector: ‘my-app’,
template: ‘<h1>My First Angular 2 App</h1>’
export class AppComponent { }

It’s only six lines of code and your first component is ready. Using object-oriented JavaScript gives you the possibility to simple declare a class as a component by adding the @Component class decorator (class decorators are a feature of ECMAScript 2015 a). With the decorators we can attach meta data to the class like specifying a selector (which means a component can later be used by including the HTML element <my-app></my-app>) and including the component’s template code.

Start Learning Angular 2 Now

… because there will be no better time.

Right now (as the Beta is just out and the framework becomes more stable) is the best time to start learning Angular 2 for web & frontend developers! Just remember that AngularJS 1.x was first introduced in 2009. That means that this framework stays on top of web frameworks for seven years (which is a huge timeframe in web development). Now you have the chance of being part of the next evolution step. Angular 2 applies the most modern web technologies and is development by the same great team at Google. Now, as the final release is not far away, is the best time to jump on the train (and this train is going very fast 😉

Using and writing about best practices and latest technologies in web design & development is my passion.