- Adding refresh page directive.

- Moving controller inside link function because it was not shared code anyways.
This commit is contained in:
Gunther Brunner
2014-03-26 14:31:35 +09:00
parent b4e6e39761
commit 334d26eb30
7 changed files with 134 additions and 95 deletions

View File

@@ -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()
}
}
}