Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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? 

1 Answer

0 votes
by (106k points)
edited by

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.

Are you willing to pursue a career in Angular, here's an opportunity for you; Angular Training provided by intellipaat!

Related questions

+2 votes
1 answer
0 votes
1 answer
asked Sep 3, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer
asked Aug 27, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...