184
rated 0 times
[
189]
[
5]
/ answers: 1 / hits: 59854
/ 11 Years ago, tue, july 9, 2013, 12:00:00
I've been searching for an answer to simple but not trivial question: What is a right way to catch image' onload
event in Angular only with jqLite? I found this question , but I want some solution with directives.
So as I said, this is not accepted for me:
.controller(MyCtrl, function($scope){
// ...
img.onload = function () {
// ...
}
because it is in controller, not in directive.
More From » angularjs