mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
11 lines
266 B
JavaScript
11 lines
266 B
JavaScript
module.exports = function imageOnloadDirective() {
|
|
return {
|
|
restrict: 'A',
|
|
link: function(scope, element, attrs) {
|
|
element.bind('load', function() {
|
|
scope.$eval(attrs.imageOnload)
|
|
// console.log('image is loaded')
|
|
})
|
|
}
|
|
}
|
|
}
|