added the initial header controller
This commit is contained in:
parent
37f8ab3ab4
commit
4503caadd6
4 changed files with 52 additions and 7 deletions
15
js/controllers/header.js
Normal file
15
js/controllers/header.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.header').controller('HeaderController',
|
||||
function($scope, $rootScope, $location) {
|
||||
|
||||
$scope.init = function() {
|
||||
$rootScope.isLogged = false;
|
||||
};
|
||||
|
||||
$scope.signout = function() {
|
||||
$rootScope.isLogged = false;
|
||||
|
||||
$location.path('signin');
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue