Files
stf-DeviceFarmer/res/app/components/stf/common-ui/modals/external-url-modal/on-load-event-directive.js
2016-01-19 23:08:33 +09:00

11 lines
240 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)
})
})
}
}