Skip to main content

Introduction angular2

What Is Angular?

Angular is a framework for dynamic web applications.

• Provides a way to organize your HTML, JavaScript, and CSS
to keep your front-end code clean.
• Released in 2011.
•Mainly maintained by Google with the help of the opensource
 community.

What Is the Difference Between Angular 1 & 2?

Speed — Angular 2 is faster.
Components — Instead of controllers and scope, we use
components, which feel simpler.
Simpler Directives — Creating custom directives is much
simpler.
 Data Binding — When we need to link data to an
HTML element or listen for a button clicking on the page, we
have an intuitive syntax.
Services are now just a class.
Many more small improvements.

What Language to Use With Angular 2?

JavaScript
But all browsers don’t support the newest version of JavaScript.
There are ways to access these features:
Transpile Means it gets changed into JavaScript

Comments