mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
17 lines
341 B
JavaScript
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()
|
|
}
|
|
}
|
|
}
|