mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
11 lines
244 B
JavaScript
11 lines
244 B
JavaScript
// TODO: Test this
|
|
module.exports = function () {
|
|
return function (scope, element, attrs) {
|
|
scope.$watch(attrs.pageVisible, function () {
|
|
element.bind('load', function () {
|
|
scope.$apply(attrs.pageLoad)
|
|
})
|
|
})
|
|
}
|
|
}
|