I have been on a quest to find the best way to handle the onload
event for images in Angular using jqLite. I came across this question, but I am looking for a solution that involves directives.
Therefore, the approach below is not satisfactory to me:
.controller("MyCtrl", function($scope){
// ...
img.onload = function () {
// ...
}
since it is within a controller and not a directive.