I'm trying to build a simple parse json example. I took the code from the following link : http://jsfiddle.net/mjaric/pJ5BR/
<p> Click <a ng-click="loadPeople()">here</a> to load data.</p>
All I want to do is instead of loading the data when clicking a button, I want it to load immediatly. What can I use instead of ng-click ? I've tried ng-init but it didn't work. Any idea? thanks