Q:
Explain about AngularJS boot process.
Answer
When the page is loaded in the browser, following action takes place:
HTML document is loaded into the browser, and evaluated by the browser. AngularJS JavaScript file is loaded; the angular global object is created. Next, JavaScript which registers controller functions is executed.
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.
View answer
Workspace
Report Error
Discuss