In this case, you use an empty timeout function in the angular controller and it will only run after all other angular elements have completed loading/processing.
<div id="myDiv" ng-controller="MyCtrl"> </div>
var MyCtrl = [ '$scope', '$timeout', function ($scope, $timeout) { $timeout(function () { // code here }, 0); } ];