How to execute AngularJS controller function on page load?

Posted by Jennifer | Updated on

Want to execute AngularJS controller function on page load? Use the below example to execute AngularJS controller function on page load.

Also you can take a look at ng-init directive. Implementation will be much like:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers