is there a post render callback for Angular JS directive?

If the second parameter, “delay” is not provided, the default behaviour is to execute the function after the DOM has completed rendering. So instead of setTimeout, use $timeout:

$timeout(function () {
    //DOM has finished rendering
});

Leave a Comment