+ CopyrightController

This commit is contained in:
tmshv committed 2015-07-08 22:06:42 +03:00
1 parent a9a0b2c6b8
commit 6e32adce5d
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
module.exports = function (app) {
app.controller('CopyrightController', function ($scope, $rootScope) {
$scope.developer = true;
$scope.now = new Date().getFullYear();
$rootScope.$on('$routeChangeSuccess', function (event, current) {
$scope.developer = current['$$route'].originalPath == '/';
});
});
};