Here is an introduction to AngularJS

CDN

Angular js

Adding reference of .js file to app.

Code

How to make our app an AngularJS app?

In a . HTML page if we want a certain part of the code to behave as AngularJS, then that part of the directive should be decorated or extended with ng-app = "".

HTML page

HTML

Body

From the above snaps, we know that the ng-app directive can be placed in any section or at any level of the HTML tags.

Now, here we may have a small question such as, "How many ng-app can be declared in a page ?". Here the answer will be any number. There is no rule that should have only one ng-app.

The perfect and popular definition about ng-app is,

"ng-app is the root element of an AngularJS application, under which directives can be used to declare bindings and define behavior."

Read more articles on AngularJS.