Answer: First, the HTML file containing the code gets loaded into the browser. After that, the JavaScript files mentioned in the HTML code gets loaded. It then creates a global object for angular. Now, the JavaScript which invokes the controller functions gets executed. During this step, AngularJS scans the complete HTML code to locate the views. If there are views found, then Angular links them to the corresponding controller functions. In this step, AngularJS initiates the execution of linked controller functions.
Next it populates the views with data from the model identified by the controller. Finally the page is ready.