The ng-app directive starts an AngularJS Application.
It defines the root element.
It automatically initializes or bootstraps the application when the web page containing AngularJS Application is loaded.
It is also used to load various AngularJS modules in AngularJS Application.
In the following example, we define a default AngularJS application using ng-app attribute of a
It defines the root element.
It automatically initializes or bootstraps the application when the web page containing AngularJS Application is loaded.
It is also used to load various AngularJS modules in AngularJS Application.
In the following example, we define a default AngularJS application using ng-app attribute of a
element.
<body ng-app="myapp">
</body?
No comments:
Post a Comment