Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the ng stand for in Angular.js directives

Tags:

angularjs

People also ask

What is Ng directives in Angular?

AngularJS directives are extended HTML attributes with the prefix ng- . The ng-app directive initializes an AngularJS application. The ng-init directive initializes application data. The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.

What does ng stand for in website?

Definition. NG. Nigeria (Internet TLD)

Which type of directives starts with * ng?

Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that DOM element or even transform the DOM element and its children. In short, it extends the HTML. Most of the directives in AngularJS are starting with ng- where ng stands for Angular.

Is ng show a directive?

AngularJS ng-show DirectiveThe ng-show directive shows the specified HTML element if the expression evaluates to true, otherwise the HTML element is hidden.


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".


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.


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.


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.