I have a full Ajax app that needs to get data via WebService when the page loads. I have already initialized via ng-init
but I do not know how to send the controller "load" and execute the block of code that retrieves the data. When I enter the function in a ng-click
and click on the element it works, but only so.
How do you define a boot process for a controller?