+ CopyrightController
This commit is contained in:
1 parent
a9a0b2c6b8
commit
6e32adce5d
1 file changed
+10
@@ -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 == '/';
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user