The ng-app Directive in AngularJS is used to define the root element of an AngularJS application. This directive automatically initializes the AngularJS application on page load. It can be used to load various modules in AngularJS Application.
Which directive initializes an AngularJS application Mcq?
The ng-app directive is used to initialize the AngularJS application. The ng-init directive is used to initialize the application data.
What are directive in AngularJS?
Directives are markers on DOM element which tell Angular JS to attach a specified behavior to that DOM element or even transform the DOM element with its children. Simple AngularJS allows extending HTML with new attributes called Directives.