AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng app Directive

AngularJS ng-app Directive



The ng-app directive tells AngularJS that this is the root element of the AngularJS application. Without the root element, the application will not run. Moreover, there is only one root element in the whole HTML document. If there are multiple ng-app directives present in an HTML document, then the first one will be used.




< element ng-app="module_name" >

// AngularJS Code goes here

< /element >


Further Explanation:-


Value Description
module_name Optional. Defines the name of a module to load with the application

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS