My go-to method for retrieving data from the server and displaying it on various components like tables or charts is by using ng-init="controllerFunction()"
. This function needs to be called every time the page loads.
While ng-init
gets the job done, I can't help but wonder if it is the most optimal approach in terms of best practices.