In AngularJS when using ng-app
: ng-app
found in the document will be used to define the root element to auto-bootstrap as an application.
In some of the application it is being used as data-ng-app
.
Is there any difference in both of the following declaration, If Yes what & If No then which one is significant and why ?
1.
<body ng-app>
<p>{{ 1 + 2 }}</p>
</body>
2.
<body data-ng-app>
<p>{{ 1 + 2 }}</p>
</body>