I include a function inside my angular regulator, I'd like this function to be run on a report prepared however I saw that precise runs it as the dom is made.
function myController($scope)
{
$scope.init = function()
{
// I'd like to run this on document ready
}
$scope.init(); // doesn't work, loads my init before the page has completely loaded
}
Anyone know how I can go about this?