Tag Archives: AngularJs ng-app attribute
AngularJs ng-app directive : AngularJs ng-app directive is used to define the root of the application. It is used to initialize the application automatically when the page loads
Syntax : AngularJs ng-app
Note you can give your ng-app name .
<div ng-app = ''>
<div ng-app = 'MyApp'>
Let us understand with simple example