O'Reilly logo
  • Dan Raney thinks this is interesting:

ng-app attribute tells Angular which parts of the page it should manage. Since we’ve placed it on the <html> element, we’re telling Angular that we want it to manage the whole page. This will often be what you want, but you might want to place it on a <div> within the app if you’re integrating Angular with an existing app that uses other methods to manage the page.


Cover of AngularJS


ng-app should go on the portion of the page you want to control with angular.