Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "ng2" referenced along with Angular 2?

Tags:

angular

I see many references to ng2 in most of the blogs that talk about Angular 2.

What does this ng2 refer to? Is ng2 the CLI of Angular 2?

like image 305
yathirigan Avatar asked Dec 12 '16 10:12

yathirigan


Video Answer


1 Answers

Angular1.x is popular by its in-built directives start with ng.
ng-### eg ng-hide, ng-show & etc.
So everyone started calling Angular1.x by ng or ng1 (ng1 after Angular2.0 came).

Later, Angular2.0 came up so people started calling it ng2.

Now Angular1.x is known as former version of Angular that is ng or ng1.

and

To refer to Angular2.0, people use ng2 term,

People have already started using ng2 name everywhere to refer to Angular2.0 eg. blogs, Stackoverflow etc.

Please take a note that Angular2's directives don't start with ng2-###

like image 147
Nikhil Shah Avatar answered Oct 26 '22 23:10

Nikhil Shah