Explain AngularJS boot process or How AngularJS is initialized automatically

Angular initializes automatically upon DOMContentLoaded event or when the angular.js script is downloaded to the browser . At this point AngularJS looks for the ng-app directive which is the root of angular app.

When the ng-app directive is found then Angular will:

  • Load the module associated with the directive.
  • Create the application injector.
  • Compile the DOM starting from the ng-app root element.

This process is called auto-bootstrapping.

results matching ""

    No results matching ""