I am new to angularJS. Now I am trying to write a simple angular application. But I am wondering the role of the ng-app
directive.
<html ng-app>
And is it possible to add ng-app
in a div
tag instead of html
tag? If possible, is there any differences between <html ng-app>
and <div ng-app>
, for example, the operating efficiency ?