What is ng-App directive in AngularJs?

ng-App directive is used to define the AngularJs Application. It appoints the root element of an AngularJs application and it is kept near the <body> or <html> tag.

We can define any number of ng-app directives inside the HTML document, but only one AngularJS application can be bootstrapped automatically (auto-bootstrapped) and the other applications need to be bootstrapped manually.

Example:

<div ng-app="">
    <p>My first expression: {{157 + 122}} </p>
</div>

Top 50+ Angular Interview Questions with Answers

Angular is one of the most current web development frameworks around the world.  In almost every interview, you will have… Read More

5 years ago