Angular 1.x vs Angular 2.0

Yasin Koçak
24-11-2014

Google’s AngularJS is one of the most popular UI frameworks and is in use in many projects.

AngularJS team has been busy working on AngularJS 2.0. This is not a complex major update; this is a whole rewrite! It’s going to make radical non-backward compatible changes and there will be no migration path from Angular 1.X to 2. The basic structure of the framework is also changing. A unified component model will get rid of controllers and templates and provide a simpler, but different, way of working. Syntax is changing to make things more consistent – parentheses to invoke functions, square brackets for attributes.

Some examples of currently planned differences in template syntax (these are likely to change!):

ng-model

Angular V1

    

Angular V2

    

ng-click

Angular V1

    

Angular V2

    

ng-repeat

Angular V1

    
{{user.userName}}

Angular V2

    
{{user.userName}}

ng-include

Angular V1

    
    

Angular V2

    
    

Angular 2.0 is still in development and is currently estimated to be ready around the end of 2015.

I’m still looking forward to finding out what Angular 2.0 exactly will be!

LEAVE A REPLY

2 Comments

  • rr says:

    “will be released end December 2014 or early 2015.”

    Are you sure?

    Also, the syntax is very likely to change from what you’ve stated.

you might also like