What does the ng stand for in Angular.js directives

Angularjs

Angularjs Problem Overview


Angular.js uses several directives prefixed with ng like below:

ng (base directive)

ng-switch
ng-repeat
ng-view

I was wondering if anyone knew what ng stood for because I couldn't find it in the docs. Is it an acronym for something?

Angularjs Solutions


Solution 1 - Angularjs

The prefix ng stands for "Angular;" all of the built-in directives that ship with Angular use that prefix. Similarly, it is recommended that you do not use the ng prefix on your own directives in order to avoid possible name collisions in future versions of Angular.

From the FAQ:

> Why is this project called "AngularJS"? Why is the namespace called "ng"? > > Because HTML has Angular brackets and "ng" sounds like "Angular".

Solution 2 - Angularjs

I guess there are not many Star Trek fans among you. "ng" stands for Next Generation, as Angular is the next generation of HTML.

"Enhanced" HTML I would say xD.

Solution 3 - Angularjs

I thought they took an arbitrary subsection of the Angular name and used it as the name space:

aNGular

Plus "NG" does not sound like Angular; no matter which way you say it.

Solution 4 - Angularjs

ng is an abbreviation of Angular.

Programmers don't like to code long names, so they keep it short and that makes it a bit more cryptic. If you look at Assembler, you know what I mean with ADD, JMP etc. JQuery is the name, the $ is what you use. Angular is the name, ng is what you use.

Solution 5 - Angularjs

NG stands for "Next Generation".

It is used in many applications as a suffix, specially in Linux. Example: syslog-ng and Aircrack-ng.

Solution 6 - Angularjs

According to the AngularJS Miscellaneous FAQ:

Why is this project called "AngularJS"? Why is the namespace called "ng"?
Because HTML has Angular brackets and "ng" sounds like "Angular".

Solution 7 - Angularjs

This guy is a Google superstar, I think ng is a part of their culture.

https://en.wikipedia.org/wiki/Andrew_Ng

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKunleView Question on Stackoverflow
Solution 1 - AngularjsMichelle TilleyView Answer on Stackoverflow
Solution 2 - AngularjsIGRACHView Answer on Stackoverflow
Solution 3 - AngularjsMoeView Answer on Stackoverflow
Solution 4 - AngularjsHerman Van Der BlomView Answer on Stackoverflow
Solution 5 - AngularjsNaNView Answer on Stackoverflow
Solution 6 - AngularjsBrent RittenhouseView Answer on Stackoverflow
Solution 7 - AngularjsChris NelsonView Answer on Stackoverflow