Angular 1 applications have spread like wild fire on the web, establishing Angular as a core framework in many company's toolbox. As the web evolved, so did Angular - into Angular 2. It's a full and modern web framework that enables us to create powerful applications.
Simply stated, Angular is a JavaScript framework for building client-side applications using HTML, CSS and a programming language such as JavaScript.
Why Angular?
The figure below demonstrate why to use angular framework.
Angular makes HTML more expressive. It powers up HTML with features such as if conditions, for loops and local variables. Angular has powerful data binding and can easily display fields from data model, track changes and process updates from the user. Angular promotes modularity by design. Applications become a set of building blocks making it easier to create and reuse content and Angular has built-in support for communication with a back-end service. This makes it easy for our web applications to integrate with a back-end service to get in post data or execute server side business logic.
Why Angular 2?
The figure below demonstrate the use of angular 2 framework.
Angular 2 is built for speed. It has faster initial loads, faster change detection and improved rendering times. Angular 2 is modern. It takes advantage of features provided in the latest JavaScript standards and beyond such as classes, modules and decorators yet it supports both green field and legacy browsers, Edge, Chrome, Firefox and Internet Explorer. Angular 2 has a simplified API. It has fewer built-in directives to learn, simpler binding and a lower overall concept count and Angular 2 enhances the productivity to improve day to day workflow.