How can I run a directive after the dom has finished rendering? How can I run a directive after the dom has finished rendering? angularjs angularjs