Sign in
vanadium
/
release.projects.luma_third_party
/
6699d7bbc0f67c3f8b84502d5e2957e3b72750d9
/
.
/
crowdstf
/
res
/
app
/
components
/
stf
/
image-onload
/
image-onload-directive.js
blob: 5744a951f346d5a810a0762937e202cfecc023df [
file
] [
log
] [
blame
]
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')
})
}
}
}