What is the purpose of the ng-app directive?

ng-app initializes an AngularJS application and sets the root element for Angular components.

<div ng-app="myApp">
  <!-- AngularJS app content -->
</div>