Describe the AngularJS boot process.

bookmark

When a page is loaded into the browser, several things happen:

  • HTML document file gets loaded, and evaluated by the browser. AngularJS JavaScript file gets loaded, and the angular global object is created. Next, JavaScript file which is responsible for registering the controller functions is executed.
  • AngularJS scans through the HTML to find AngularJS apps and views. Once the view is found, it connects that particular view to the corresponding controller function.
  • AngularJS executes the controller functions. It further renders the views with data from the model populated by the controller, and the page gets ready.