Files
stf-DeviceFarmer/res/app/components/stf/common-ui/refresh-page/refresh-page-directive.js
2014-04-30 18:59:30 +09:00

17 lines
341 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()
}
// TODO: reload with $route.reload()
}
}
}