What is “ng-app” directive in AngularJS Applications ?

ng-app directive starts an AngularJS Application. It defines the root element. It automatically initializes or bootstraps the application when web page containing AngularJS Application is loaded. It is also used to load various AngularJS modules in AngularJS Application. In following example, we’ve defined a default AngularJS application using ng-app attribute of a div element.

Sample using “ng-app” directive
<div ng-app=myApp” > ….. </div>