What does the ng stand for in Angular.js directives

5.8K    Asked by CarlPaige in Python , Asked on Jun 9, 2021

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

ng (base directive). But don’t know what is ng in angular?

ng-switch 
ng-repeat 
Ng-view

Don’t know what is ng in angular? Is it an acronym for something?

In Angular.js 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.



Your Answer

Interviews

Parent Categories