When the page is loaded in the browser, following action takes place:
AngularJS scans through the HTML to look for AngularJS applications and views. Once view is located, it then connects that view to the corresponding controller function.
Then, AngularJS executes the controller functions. It then renders the views with data from the model populated by the controller. The page is ready.