I want to specifically use element.onload(function(){}) for when the element is completedly loaded in compile's poststep. But I saw the elem inside compile include onload as null so basically onload does not exist for angular element. I found .ready attached to the element function though, but is this equivalent?
My scenario: Basically I have a directive contains google ad, and I include it with another directive using ng-transclude, that, transclude the google ad directive into it.
I want to see if there is a way to determine exact moment when the ad is completely loaded, I thought onload for the dom is a good option, but I can't find that equivalent inside angular directive's elem argument in compile stage, which supposedly the stage where all dom should be rendered?