1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
OpenSTF/res/app/components/stf/common-ui/refresh-page/refresh-page-directive.js
2016-01-19 23:08:33 +09:00

14 lines
295 B
JavaScript

module.exports = function refreshPageDirective($window) {
return {
restrict: 'E',
replace: true,
scope: {
},
template: require('./refresh-page.jade'),
link: function(scope) {
scope.reloadWindow = function() {
$window.location.reload()
}
}
}
}