atentaten atentaten - 1 year ago 182
AngularJS Question

What does the ng stand for in Angular.js directives

Angular.js uses several directives prefixed with

like below:

(base directive)


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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download