mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
- Adding refresh page directive.
- Moving controller inside link function because it was not shared code anyways.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module.exports = function refreshPageDirective() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
scope: {
|
||||
},
|
||||
template: require('./refresh-page.jade'),
|
||||
link: function (scope, element, attrs) {
|
||||
// TODO: reload with $route.reload()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user